[PATCH v2 1/1] iproute2: Add support for a few routing protocols

2018-06-08 Thread Donald Sharp
Add support for: BGP ISIS OSPF RIP EIGRP Routing protocols to iproute2. Signed-off-by: Donald Sharp --- v2: Update to latest version of code. etc/iproute2/rt_protos | 5 + lib/rt_names.c | 5 + 2 files changed, 10 insertions(+) diff --git a/etc/iproute2/rt_protos b/etc

[PATCH v2 0/1] Addition of new routing protocols for iproute2

2018-06-08 Thread Donald Sharp
The linux kernel recently accepted some new RTPROT values for some fairly standard routing protocols. This commit brings in support for iproute2 to handle these new values. v2 - Update to latest version of master which has rtnetlink.h code and drop of work already done. Donald Sharp (1

[PATCH 1/2] iproute2: Add support for a few routing protocols

2018-06-08 Thread Donald Sharp
Add support for: BGP ISIS OSPF RIP EIGRP Routing protocols to iproute2. Signed-off-by: Donald Sharp --- etc/iproute2/rt_protos| 5 + include/linux/rtnetlink.h | 5 + lib/rt_names.c| 5 + 3 files changed, 15 insertions(+) diff --git a/etc/iproute2/rt_protos b/etc

[PATCH 0/2] Addition of new routing protocols for iproute2

2018-06-08 Thread Donald Sharp
The linux kernel recently accepted some new RTPROT values for some fairly standard routing protocols. This commit brings in support for iproute2 to handle these new values. Additionally clean up some long standing cruft in etc/iproute2/rt_protos Donald Sharp (2): iproute2: Add support

[PATCH 2/2] iproute2: Remove leftover gated RT_PROT defines

2018-06-08 Thread Donald Sharp
These values are not being used nor maintained, so remove. Signed-off-by: Donald Sharp --- etc/iproute2/rt_protos | 13 - 1 file changed, 13 deletions(-) diff --git a/etc/iproute2/rt_protos b/etc/iproute2/rt_protos index 3ffe8a6c..a965ad16 100644 --- a/etc/iproute2/rt_protos +++ b

Re: [PATCH] rtnetlink: Add more well known protocol values

2018-05-30 Thread Donald Sharp
This patch is intended for net-next. thanks! donald On Wed, May 30, 2018 at 8:27 AM, Donald Sharp wrote: > FRRouting installs routes into the kernel associated with > the originating protocol. Add these values to the well > known values in rtnetlink.h. > > Signed-off-b

[PATCH] rtnetlink: Add more well known protocol values

2018-05-30 Thread Donald Sharp
FRRouting installs routes into the kernel associated with the originating protocol. Add these values to the well known values in rtnetlink.h. Signed-off-by: Donald Sharp --- v2: Fixed whitespace issues include/uapi/linux/rtnetlink.h | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH] rtnetlink: Add more well known protocol values

2018-05-25 Thread Donald Sharp
FRRouting installs routes into the kernel associated with the originating protocol. Add these values to the well known values in rtnetlink.h. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- include/uapi/linux/rtnetlink.h | 5 + 1 file changed, 5 insertions(+) diff

[PATCH v4 iproute2-next 3/3] ip: Allow rules to accept a specified protocol

2018-02-28 Thread Donald Sharp
Allow the specification of a protocol when the user adds/modifies/deletes a rule. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/iprule.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ip/iprule.c b/ip/iprule.c index 8120520e..6fdc9b5e 100644 --- a/ip/iprule.c

[PATCH v4 iproute2-next 0/3] Allow 'ip rule' command to use protocol

2018-02-28 Thread Donald Sharp
' no parameters and doc changes Donald Sharp (3): ip: Use the `struct fib_rule_hdr` for rules ip: Display ip rule protocol used ip: Allow rules to accept a specified protocol include/uapi/linux/fib_rules.h | 1 + ip/iprule.c| 173

[PATCH v4 iproute2-next 1/3] ip: Use the `struct fib_rule_hdr` for rules

2018-02-28 Thread Donald Sharp
use the correct one. Additionally copy over the modified fib_rules.h file Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- include/uapi/linux/fib_rules.h | 1 + ip/iprule.c| 128 + 2 files changed, 68 insertions(

[PATCH v4 iproute2-next 2/3] ip: Display ip rule protocol used

2018-02-28 Thread Donald Sharp
Modify 'ip rule' command to notice when the kernel passes to us the originating protocol. Add code to allow the `ip rule flush protocol XXX` command to be accepted and properly handled. Modify the documentation to reflect these code changes. Signed-off-by: Donald Sharp <

[PATCH v3 iproute2-next 1/3] ip: Use the `struct fib_rule_hdr` for rules

2018-02-23 Thread Donald Sharp
use the correct one. Additionally copy over the modified fib_rules.h file Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- include/uapi/linux/fib_rules.h | 1 + ip/iprule.c| 128 + 2 files changed, 68 insertions(

[PATCH v3 iproute2-next 2/3] ip: Display ip rule protocol used

2018-02-23 Thread Donald Sharp
Modify 'ip rule' command to notice when the kernel passes to us the originating protocol. Add code to allow the `ip rule flush protocol XXX` command to be accepted and properly handled. Modify the documentation to reflect these code changes. Signed-off-by: Donald Sharp <

[PATCH v3 iproute2-next 3/3] ip: Allow rules to accept a specified protocol

2018-02-23 Thread Donald Sharp
Allow the specification of a protocol when the user adds/modifies/deletes a rule. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/iprule.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ip/iprule.c b/ip/iprule.c index 17df9e9b..796da3b3 100644 --- a/ip/iprule.c

[PATCH v3 iproute2-next 0/3] Allow 'ip rule' command to use protocol

2018-02-23 Thread Donald Sharp
Fix iprule.c to use the actual `struct fib_rule_hdr` and to allow the end user to see and use the protocol keyword for rule manipulation. v2: Rearrange and code changes as per David Ahern v3: Fix some missed RTN_XXX to appropriate FR_XX and doc changes Donald Sharp (3): ip: Use the `struct

[PATCH iproute2 v2] ip: Properly display AF_BRIDGE address information for neighbor events

2018-02-23 Thread Donald Sharp
and "???" was being printed. Add code to properly display this data when requested. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- lib/utils.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/lib/utils.c b/lib/utils.c index 24aeddd8..fe5841f6

[PATCH] net: fib_rules: Add new attribute to set protocol

2018-02-23 Thread Donald Sharp
returned 0 in notifications. To avoid incompatibility with existing iproute2, send the protocol as a new attribute. Fixes: cac56209a66 ("net: Allow a rule to track originating protocol") Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- drivers/net/vrf.c

[PATCH iproute2] ip: Properly display AF_BRIDGE address information for neighbor events

2018-02-21 Thread Donald Sharp
and "???" was being printed. Add code to properly display this data when requested. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- lib/utils.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/lib/utils.c b/lib/utils.c index 24aeddd8..e01e18a7

[PATCH v2 iproute2-next 2/3] ip: Display ip rule protocol used

2018-02-21 Thread Donald Sharp
Modify 'ip rule' command to notice when the kernel passes to us the originating protocol. Add code to allow the `ip rule flush protocol XXX` command to be accepted and properly handled. Modify the documentation to reflect these code changes. Signed-off-by: Donald Sharp <

[PATCH v2 iproute2-next 0/3] Allow 'ip rule' command to use protocol

2018-02-21 Thread Donald Sharp
Fix iprule.c to use the actual `struct fib_rule_hdr` and to allow the end user to see and use the protocol keyword for rule manipulations. v2: Rearrange and code changes as per David Ahern Donald Sharp (3): ip: Use the `struct fib_rule_hdr` for rules ip: Display ip rule protocol used ip

[PATCH v2 iproute2-next 1/3] ip: Use the `struct fib_rule_hdr` for rules

2018-02-21 Thread Donald Sharp
use the correct one. Additionally copy over the modified fib_rules.h file Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- include/uapi/linux/fib_rules.h | 2 +- ip/iprule.c| 129 ++--- 2 files changed, 69 insertions(

[PATCH v2 iproute2-next 3/3] ip: Allow rules to accept a specified protocol

2018-02-21 Thread Donald Sharp
Allow the specification of a protocol when the user adds/modifies/deletes a rule. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/iprule.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ip/iprule.c b/ip/iprule.c index 39008768..192fe215 100644 --- a/ip/iprule.c

[PATCH iproute2-next 2/4] ip: Display ip rule protocol used

2018-02-20 Thread Donald Sharp
Newer kernels are now accepting a protocol from the installing program for who installed the rule. This change allows us to see this change if it is being specified by the installing program. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/iprule.c | 4 1 file chan

[PATCH iproute2-next 3/4] ip: Allow rules to accept a specified protocol

2018-02-20 Thread Donald Sharp
Allow the specification of a protocol when the user adds/modifies/deletes a rule. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/iprule.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ip/iprule.c b/ip/iprule.c index b3e7d92c..fd242fee 100644 --- a/ip/iprule.c

[PATCH iproute2-next 0/4] Allow 'ip rule' command to use protocol

2018-02-20 Thread Donald Sharp
Fix iprule.c to use the actual `struct fib_rule_hdr` and to allow the end user to see and use the protocol keyword for rule manipulations. Donald Sharp (4): ip: Use the `struct fib_rule_hdr` for rules ip: Display ip rule protocol used ip: Allow rules to accept a specified protocol ip: Add

[PATCH iproute2-next 4/4] ip: Add ability to flush a rule based upon protocol

2018-02-20 Thread Donald Sharp
Add code to allow the `ip rule flush protocol XXX` command to be accepted and properly handled. Additionally modify the documentation to be correct with these changes. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/iprule.c| 25 ++--- man/m

[PATCH iproute2-next 1/4] ip: Use the `struct fib_rule_hdr` for rules

2018-02-20 Thread Donald Sharp
use the correct one. Additionally copy over the modified fib_rules.h file Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- include/uapi/linux/fib_rules.h | 2 +- ip/iprule.c| 132 ++--- 2 files changed, 72 insertions(

[PATCH net-next v2 0/1] Allow rules to track originating protocol

2018-02-20 Thread Donald Sharp
Add the ability for the kernel to track the originating protocol for when new rules are added to the kernel. --- v1->v2 -> Address comments by David Miller to collapse patches into 1. Donald Sharp (1): net: Allow a rule to track originating protocol drivers/net/vrf.c

[PATCH net-next v2 1/1] net: Allow a rule to track originating protocol

2018-02-20 Thread Donald Sharp
the vrf device to specify that the kernel is the originator of the rule created for this device. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- drivers/net/vrf.c | 1 + include/net/fib_rules.h| 3 ++- include/uapi/linux/fib_rules.h | 2 +- net/core/fib_r

Re: [PATCH 0/3] Allow 'ip rule' command to use protocol

2018-02-17 Thread Donald Sharp
Got it. I'll send an update. donald On Sat, Feb 17, 2018 at 6:35 PM, David Ahern <d...@cumulusnetworks.com> wrote: > On 2/17/18 5:47 AM, Donald Sharp wrote: >> Fix iprule.c to use the actual `struct fib_rule_hdr` and to >> allow the end user to see and use the protoco

[PATCH 3/3] ip: Allow rules to accept a specified protocol

2018-02-17 Thread Donald Sharp
Allow the specification of a protocol when the user adds/modifies/deletes a rule. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/iprule.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ip/iprule.c b/ip/iprule.c index 5703d6e4..8fc6ac48 100644 --- a/ip/iprule.c

[PATCH 1/3] ip: Use the `struct fib_rule_hdr` for rules

2018-02-17 Thread Donald Sharp
use the correct one. Additionally copy over the modified fib_rules.h file Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- include/linux/fib_rules.h | 2 +- ip/iprule.c | 105 -- 2 files changed, 56 insertions(

[PATCH 0/3] Allow 'ip rule' command to use protocol

2018-02-17 Thread Donald Sharp
Fix iprule.c to use the actual `struct fib_rule_hdr` and to allow the end user to see and use the protocol keyword for rule manipulations. Donald Sharp (3): ip: Use the `struct fib_rule_hdr` for rules ip: Display ip rule protocol used ip: Allow rules to accept a specified protocol include

[PATCH 2/3] ip: Display ip rule protocol used

2018-02-17 Thread Donald Sharp
Newer kernels are now accepting a protocol from the installing program for who installed the rule. This change allows us to see this change if it is being specified by the installing program. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/iprule.c | 3 +++ 1 file chan

[PATCH 1/2] net: Allow a rule to track originating protocol

2018-02-17 Thread Donald Sharp
-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- include/net/fib_rules.h| 3 ++- include/uapi/linux/fib_rules.h | 2 +- net/core/fib_rules.c | 7 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h

[PATCH 2/2] drivers: Modify vrf device to specify it's rule as RTPROT_KERNEL

2018-02-17 Thread Donald Sharp
Allow the vrf device to specify that the kernel is the originator of the rule created for this device. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- drivers/net/vrf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c index 139c61

[PATCH 0/2] Allow rules to track originating protocol

2018-02-17 Thread Donald Sharp
Add the ability for the kernel to track the originating protocol for when new rules are added to the kernel. Donald Sharp (2): net: Allow a rule to track originating protocol drivers: Modify vrf device to specify it's rule as RTPROT_KERNEL drivers/net/vrf.c | 1 + include/net

[PATCH] doc: Update VRF documentation metric

2017-10-18 Thread Donald Sharp
Two things: 1) Update examples to show usage of metric 2) Discuss reasoning for using such a high metric. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- Documentation/networking/vrf.txt | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documen

[PATCH] net: ipmr: Add ipmr_rtm_getroute

2017-06-28 Thread Donald Sharp
process. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- net/ipv4/ipmr.c | 63 - 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index a1d521b..bb909f1 100644 --- a/net/ipv4/ipmr.c

[PATCH iproute2] ip: mroute: Add table output to show command

2017-06-14 Thread Donald Sharp
the convention established by 'ip route show table 0' for when to display Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- ip/ipmroute.c | 5 + 1 file changed, 5 insertions(+) diff --git a/ip/ipmroute.c b/ip/ipmroute.c index 4d2d758..70f4c4f 100644 --- a/ip/ipmroute.c +++ b/ip/ipmr

Re: ipmr: MFC routes when VIF deleted

2017-06-11 Thread Donald Sharp
I would argue that this is just an unintended side effect of the original implementation. Shuffling interface vif's seems like a good way to churn a significant number of mroutes to me. If you want to use a interface it probably is going to be already be configured with it's own vif, and as such

[PATCH net v3] net: ipmr: Fix some mroute forwarding issues in vrf's

2017-06-10 Thread Donald Sharp
to the correct incoming device for a vrf scenario, before calling ip_mr_forward. Fix this by resolving to the correct interface and calling ip_mr_forward with the result. Fixes: e58e41596811 ("net: Enable support for VRF with ipv4 multicast") Signed-off-by: Donald Sharp <sha...@cumulusnetwork

Re: [PATCH net v2] net: ipmr: Fix some mroute forwarding issues in vrf's

2017-06-09 Thread Donald Sharp
I'll change it over to this way. No problem. donald On Fri, Jun 9, 2017 at 10:54 AM, David Ahern <dsah...@gmail.com> wrote: > On 6/9/17 8:22 AM, Donald Sharp wrote: >> @@ -988,7 +988,16 @@ static void ipmr_cache_resolve(struct net *net, struct &

[PATCH net v2] net: ipmr: Fix some mroute forwarding issues in vrf's

2017-06-09 Thread Donald Sharp
to the correct incoming device for a vrf scenario, before calling ip_mr_forward. Fix this by resolving to the correct interface and calling ip_mr_forward with the result. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- v2: Fixed title net/ipv4/ipmr.c | 27 ++-

[PATCH] Fix some mroute forwarding issues in vrf's

2017-06-09 Thread Donald Sharp
to the correct incoming device for a vrf scenario, before calling ip_mr_forward. Fix this by resolving to the correct interface and calling ip_mr_forward with the result. Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com> --- net/ipv4/ipmr.c | 27 ++- 1 file changed, 18 inse