All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2] route: label externally offloaded routes
@ 2015-03-08  6:15 sfeldma
  2015-03-08  6:57 ` Jiri Pirko
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: sfeldma @ 2015-03-08  6:15 UTC (permalink / raw)
  To: netdev, stephen, jiri

From: Scott Feldman <sfeldma@gmail.com>

On ip route print dump, label externally offloaded routes with "external".
Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
net-next.  For example:

$ ip route
default via 192.168.0.2 dev eth0
11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
12.0.0.2  proto zebra  metric 30 external
        nexthop via 11.0.0.1  dev swp1 weight 1
        nexthop via 11.0.0.9  dev swp2 weight 1
12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
---
 include/linux/rtnetlink.h |    1 +
 ip/iproute.c              |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 3eb7810..c74773c 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -332,6 +332,7 @@ struct rtnexthop {
 #define RTNH_F_DEAD		1	/* Nexthop is dead (used by multipath)	*/
 #define RTNH_F_PERVASIVE	2	/* Do recursive gateway lookup	*/
 #define RTNH_F_ONLINK		4	/* Gateway is forced on link	*/
+#define RTNH_F_EXTERNAL		8	/* Route installed externally   */
 
 /* Macros to handle hexthops */
 
diff --git a/ip/iproute.c b/ip/iproute.c
index 76d8e36..fdb0a98 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -426,6 +426,8 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
 		fprintf(fp, "onlink ");
 	if (r->rtm_flags & RTNH_F_PERVASIVE)
 		fprintf(fp, "pervasive ");
+	if (r->rtm_flags & RTNH_F_EXTERNAL)
+		fprintf(fp, "external ");
 	if (r->rtm_flags & RTM_F_NOTIFY)
 		fprintf(fp, "notify ");
 	if (tb[RTA_MARK]) {
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-08  6:15 [PATCH iproute2] route: label externally offloaded routes sfeldma
@ 2015-03-08  6:57 ` Jiri Pirko
       [not found]   ` <CAJieiUgz9O7LFhzONx5JKRv0o4+6hSHNtRgKaaKAn2ph4jdC2g@mail.gmail.com>
  2015-03-08 14:14 ` roopa
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 13+ messages in thread
From: Jiri Pirko @ 2015-03-08  6:57 UTC (permalink / raw)
  To: sfeldma; +Cc: netdev, stephen

Sun, Mar 08, 2015 at 07:15:35AM CET, sfeldma@gmail.com wrote:
>From: Scott Feldman <sfeldma@gmail.com>
>
>On ip route print dump, label externally offloaded routes with "external".
>Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
>net-next.  For example:
>
>$ ip route
>default via 192.168.0.2 dev eth0
>11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
>11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
>11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>12.0.0.2  proto zebra  metric 30 external
>        nexthop via 11.0.0.1  dev swp1 weight 1
>        nexthop via 11.0.0.9  dev swp2 weight 1
>12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
>
>Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Reviewed-by: Jiri Pirko <jiri@resnulli.us>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-08  6:15 [PATCH iproute2] route: label externally offloaded routes sfeldma
  2015-03-08  6:57 ` Jiri Pirko
@ 2015-03-08 14:14 ` roopa
  2015-03-09 14:02 ` Andy Gospodarek
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: roopa @ 2015-03-08 14:14 UTC (permalink / raw)
  To: sfeldma; +Cc: netdev, stephen, jiri

On 3/7/15, 10:15 PM, sfeldma@gmail.com wrote:
> From: Scott Feldman <sfeldma@gmail.com>
>
> On ip route print dump, label externally offloaded routes with "external".
> Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
> net-next.  For example:
>
> $ ip route
> default via 192.168.0.2 dev eth0
> 11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
> 11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
> 11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
> 12.0.0.2  proto zebra  metric 30 external
>          nexthop via 11.0.0.1  dev swp1 weight 1
>          nexthop via 11.0.0.9  dev swp2 weight 1
> 12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
> 12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
> 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
>
> Signed-off-by: Scott Feldman <sfeldma@gmail.com>

No objections to the patch.

since this is now getting exposed to userspace and there were 
suggestions in the past to use words like 'hw' or 'offload' in place of 
'external' here, checking to see if you are taking suggestions. If yes, 
would 'hw' or 'offloaded' be a better name for the flag ?.
Given that this will come up again for acls and such.

Thanks,
Roopa

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
       [not found]   ` <CAJieiUgz9O7LFhzONx5JKRv0o4+6hSHNtRgKaaKAn2ph4jdC2g@mail.gmail.com>
@ 2015-03-08 22:10     ` Scott Feldman
  2015-03-09  0:27       ` roopa
  0 siblings, 1 reply; 13+ messages in thread
From: Scott Feldman @ 2015-03-08 22:10 UTC (permalink / raw)
  To: Roopa Prabhu; +Cc: Jiri Pirko, netdev, stephen

On Sun, Mar 8, 2015 at 6:35 AM, Roopa Prabhu <roopa@cumulusnetworks.com> wrote:
>
>
> On Sat, Mar 7, 2015 at 10:57 PM, Jiri Pirko <jiri@resnulli.us> wrote:
>>
>> Sun, Mar 08, 2015 at 07:15:35AM CET, sfeldma@gmail.com wrote:
>> >From: Scott Feldman <sfeldma@gmail.com>
>> >
>> >On ip route print dump, label externally offloaded routes with
>> > "external".
>> >Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
>> >net-next.  For example:
>> >
>> >$ ip route
>> >default via 192.168.0.2 dev eth0
>> >11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
>> >11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>> >11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
>> >11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>> >12.0.0.2  proto zebra  metric 30 external
>> >        nexthop via 11.0.0.1  dev swp1 weight 1
>> >        nexthop via 11.0.0.9  dev swp2 weight 1
>> >12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>> >12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>> >192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
>> >
>> >Signed-off-by: Scott Feldman <sfeldma@gmail.com>
>>
> No objections to the patch.
>
> since this is now getting exposed to userspace and there were suggestions in
> the past to use words like 'hw' or 'offload' in place of 'external' here,
> checking to see if you are taking suggestions. If yes, would 'hw' or
> 'offloaded' be a better name for the flag ?.

We used "external" because that's what was used for marking FDB
entries.  I personally have no preference other than we be consistent
for each object offloaded externally.  There will be other objects
we'll need to tag, such as bonds, so if there is enough objection to
"external", we should make the change now for FIB abd FDB objects, and
be consistent with future objects.

-scott

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-08 22:10     ` Scott Feldman
@ 2015-03-09  0:27       ` roopa
  2015-03-09  6:25         ` Jiri Pirko
  0 siblings, 1 reply; 13+ messages in thread
From: roopa @ 2015-03-09  0:27 UTC (permalink / raw)
  To: Scott Feldman
  Cc: Jiri Pirko, netdev, stephen, Jamal Hadi Salim, Andy Gospodarek

On 3/8/15, 3:10 PM, Scott Feldman wrote:
> On Sun, Mar 8, 2015 at 6:35 AM, Roopa Prabhu <roopa@cumulusnetworks.com> wrote:
>>
>> On Sat, Mar 7, 2015 at 10:57 PM, Jiri Pirko <jiri@resnulli.us> wrote:
>>> Sun, Mar 08, 2015 at 07:15:35AM CET, sfeldma@gmail.com wrote:
>>>> From: Scott Feldman <sfeldma@gmail.com>
>>>>
>>>> On ip route print dump, label externally offloaded routes with
>>>> "external".
>>>> Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
>>>> net-next.  For example:
>>>>
>>>> $ ip route
>>>> default via 192.168.0.2 dev eth0
>>>> 11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
>>>> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>>>> 11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
>>>> 11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>>>> 12.0.0.2  proto zebra  metric 30 external
>>>>         nexthop via 11.0.0.1  dev swp1 weight 1
>>>>         nexthop via 11.0.0.9  dev swp2 weight 1
>>>> 12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>>>> 12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>>>> 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
>>>>
>>>> Signed-off-by: Scott Feldman <sfeldma@gmail.com>
>> No objections to the patch.
>>
>> since this is now getting exposed to userspace and there were suggestions in
>> the past to use words like 'hw' or 'offload' in place of 'external' here,
>> checking to see if you are taking suggestions. If yes, would 'hw' or
>> 'offloaded' be a better name for the flag ?.
> We used "external" because that's what was used for marking FDB
> entries.  I personally have no preference other than we be consistent
> for each object offloaded externally.  There will be other objects
> we'll need to tag, such as bonds, so if there is enough objection to
> "external", we should make the change now for FIB abd FDB objects, and
> be consistent with future objects.
agree, we should make the change now if needed to suite all types of 
object offloads.
I would vote for 'hw' or 'offload' or 'hwoffload'.

Thanks,
Roopa

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-09  0:27       ` roopa
@ 2015-03-09  6:25         ` Jiri Pirko
  0 siblings, 0 replies; 13+ messages in thread
From: Jiri Pirko @ 2015-03-09  6:25 UTC (permalink / raw)
  To: roopa; +Cc: Scott Feldman, netdev, stephen, Jamal Hadi Salim, Andy Gospodarek

Mon, Mar 09, 2015 at 01:27:09AM CET, roopa@cumulusnetworks.com wrote:
>On 3/8/15, 3:10 PM, Scott Feldman wrote:
>>On Sun, Mar 8, 2015 at 6:35 AM, Roopa Prabhu <roopa@cumulusnetworks.com> wrote:
>>>
>>>On Sat, Mar 7, 2015 at 10:57 PM, Jiri Pirko <jiri@resnulli.us> wrote:
>>>>Sun, Mar 08, 2015 at 07:15:35AM CET, sfeldma@gmail.com wrote:
>>>>>From: Scott Feldman <sfeldma@gmail.com>
>>>>>
>>>>>On ip route print dump, label externally offloaded routes with
>>>>>"external".
>>>>>Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
>>>>>net-next.  For example:
>>>>>
>>>>>$ ip route
>>>>>default via 192.168.0.2 dev eth0
>>>>>11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
>>>>>11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>>>>>11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
>>>>>11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>>>>>12.0.0.2  proto zebra  metric 30 external
>>>>>        nexthop via 11.0.0.1  dev swp1 weight 1
>>>>>        nexthop via 11.0.0.9  dev swp2 weight 1
>>>>>12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>>>>>12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>>>>>192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
>>>>>
>>>>>Signed-off-by: Scott Feldman <sfeldma@gmail.com>
>>>No objections to the patch.
>>>
>>>since this is now getting exposed to userspace and there were suggestions in
>>>the past to use words like 'hw' or 'offload' in place of 'external' here,
>>>checking to see if you are taking suggestions. If yes, would 'hw' or
>>>'offloaded' be a better name for the flag ?.
>>We used "external" because that's what was used for marking FDB
>>entries.  I personally have no preference other than we be consistent
>>for each object offloaded externally.  There will be other objects
>>we'll need to tag, such as bonds, so if there is enough objection to
>>"external", we should make the change now for FIB abd FDB objects, and
>>be consistent with future objects.
>agree, we should make the change now if needed to suite all types of object
>offloads.
>I would vote for 'hw' or 'offload' or 'hwoffload'.

I think that exnernal sounds much better then offload. You can see
rightaway that the entry has been handled externaly. What "offload" or
"hw" would mean is not clear to me. I think it's too generic. And since we
use "external" already for fdbs, I would stick with it.

>
>Thanks,
>Roopa
>
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-08  6:15 [PATCH iproute2] route: label externally offloaded routes sfeldma
  2015-03-08  6:57 ` Jiri Pirko
  2015-03-08 14:14 ` roopa
@ 2015-03-09 14:02 ` Andy Gospodarek
  2015-03-09 16:16   ` Scott Feldman
  2015-03-15 19:39 ` Stephen Hemminger
  2015-03-15 19:41 ` Stephen Hemminger
  4 siblings, 1 reply; 13+ messages in thread
From: Andy Gospodarek @ 2015-03-09 14:02 UTC (permalink / raw)
  To: sfeldma; +Cc: netdev, stephen, jiri

On Sat, Mar 07, 2015 at 10:15:35PM -0800, sfeldma@gmail.com wrote:
> From: Scott Feldman <sfeldma@gmail.com>
> 
> On ip route print dump, label externally offloaded routes with "external".
> Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
> net-next.  For example:
> 
> $ ip route
> default via 192.168.0.2 dev eth0
> 11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
> 11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
> 11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
> 12.0.0.2  proto zebra  metric 30 external
>         nexthop via 11.0.0.1  dev swp1 weight 1
>         nexthop via 11.0.0.9  dev swp2 weight 1
> 12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
> 12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
> 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
> 
> Signed-off-by: Scott Feldman <sfeldma@gmail.com>

You know we cannot have a thread about nomenclature without a comment
from me.  ;)

My only concern about 'external' is whether or not people will gloss
over it since many of the routes listed will be to networks that
actually are external to the system.  That namespace collision could
seem awkward if you are not a traditional follower of this list.
Listing an FDB entry as 'external' does not have the same issue since
all FDB entries are local to the system, so I didn't even
think about the potential when that set was posted.

I would like to just call this 'hardware' since that is what we appear
to be using for offload and would make it clear to the user that this
route was in hardware as well as in the kernel.  I'd say the same for
FDB entries, too.

Scott, you have lots of experience in both traditional and Linux worlds,
do you think my concern about confusion is unnecessary?

> ---
>  include/linux/rtnetlink.h |    1 +
>  ip/iproute.c              |    2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
> index 3eb7810..c74773c 100644
> --- a/include/linux/rtnetlink.h
> +++ b/include/linux/rtnetlink.h
> @@ -332,6 +332,7 @@ struct rtnexthop {
>  #define RTNH_F_DEAD		1	/* Nexthop is dead (used by multipath)	*/
>  #define RTNH_F_PERVASIVE	2	/* Do recursive gateway lookup	*/
>  #define RTNH_F_ONLINK		4	/* Gateway is forced on link	*/
> +#define RTNH_F_EXTERNAL		8	/* Route installed externally   */
>  
>  /* Macros to handle hexthops */
>  
> diff --git a/ip/iproute.c b/ip/iproute.c
> index 76d8e36..fdb0a98 100644
> --- a/ip/iproute.c
> +++ b/ip/iproute.c
> @@ -426,6 +426,8 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
>  		fprintf(fp, "onlink ");
>  	if (r->rtm_flags & RTNH_F_PERVASIVE)
>  		fprintf(fp, "pervasive ");
> +	if (r->rtm_flags & RTNH_F_EXTERNAL)
> +		fprintf(fp, "external ");
>  	if (r->rtm_flags & RTM_F_NOTIFY)
>  		fprintf(fp, "notify ");
>  	if (tb[RTA_MARK]) {
> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-09 14:02 ` Andy Gospodarek
@ 2015-03-09 16:16   ` Scott Feldman
  2015-03-09 16:51     ` Jeff Kirsher
  0 siblings, 1 reply; 13+ messages in thread
From: Scott Feldman @ 2015-03-09 16:16 UTC (permalink / raw)
  To: Andy Gospodarek; +Cc: Netdev, stephen, Jiří Pírko

On Mon, Mar 9, 2015 at 7:02 AM, Andy Gospodarek
<gospo@cumulusnetworks.com> wrote:
> On Sat, Mar 07, 2015 at 10:15:35PM -0800, sfeldma@gmail.com wrote:
>> From: Scott Feldman <sfeldma@gmail.com>
>>
>> On ip route print dump, label externally offloaded routes with "external".
>> Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
>> net-next.  For example:
>>
>> $ ip route
>> default via 192.168.0.2 dev eth0
>> 11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
>> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>> 11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
>> 11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>> 12.0.0.2  proto zebra  metric 30 external
>>         nexthop via 11.0.0.1  dev swp1 weight 1
>>         nexthop via 11.0.0.9  dev swp2 weight 1
>> 12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>> 12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>> 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
>>
>> Signed-off-by: Scott Feldman <sfeldma@gmail.com>
>
> You know we cannot have a thread about nomenclature without a comment
> from me.  ;)
>
> My only concern about 'external' is whether or not people will gloss
> over it since many of the routes listed will be to networks that
> actually are external to the system.  That namespace collision could
> seem awkward if you are not a traditional follower of this list.
> Listing an FDB entry as 'external' does not have the same issue since
> all FDB entries are local to the system, so I didn't even
> think about the potential when that set was posted.
>
> I would like to just call this 'hardware' since that is what we appear
> to be using for offload and would make it clear to the user that this
> route was in hardware as well as in the kernel.  I'd say the same for
> FDB entries, too.
>
> Scott, you have lots of experience in both traditional and Linux worlds,
> do you think my concern about confusion is unnecessary?

Votes so far: 1 for "external", 1 for "hardware", 1 for "offload" or "hw".

Good point about confusion wrt routes to non-local networks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-09 16:16   ` Scott Feldman
@ 2015-03-09 16:51     ` Jeff Kirsher
  2015-03-09 17:53       ` John W. Linville
  0 siblings, 1 reply; 13+ messages in thread
From: Jeff Kirsher @ 2015-03-09 16:51 UTC (permalink / raw)
  To: Scott Feldman, Andy Gospodarek; +Cc: Netdev, stephen, Jiří Pírko

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 03/09/2015 09:16 AM, Scott Feldman wrote:
> On Mon, Mar 9, 2015 at 7:02 AM, Andy Gospodarek 
> <gospo@cumulusnetworks.com> wrote:
>> On Sat, Mar 07, 2015 at 10:15:35PM -0800, sfeldma@gmail.com
>> wrote:
>>> From: Scott Feldman <sfeldma@gmail.com>
>>> 
>>> On ip route print dump, label externally offloaded routes with
>>> "external". Offloaded routes are flagged with RTNH_F_EXTERNAL,
>>> a recent additon to net-next.  For example:
>>> 
>>> $ ip route default via 192.168.0.2 dev eth0 11.0.0.0/30 dev
>>> swp1  proto kernel  scope link  src 11.0.0.2 external 
>>> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20
>>> external 11.0.0.8/30 dev swp2  proto kernel  scope link  src
>>> 11.0.0.10 external 11.0.0.12/30 via 11.0.0.9 dev swp2  proto
>>> zebra  metric 20 external 12.0.0.2  proto zebra  metric 30
>>> external nexthop via 11.0.0.1  dev swp1 weight 1 nexthop via
>>> 11.0.0.9  dev swp2 weight 1 12.0.0.3 via 11.0.0.1 dev swp1
>>> proto zebra  metric 20 external 12.0.0.4 via 11.0.0.9 dev swp2
>>> proto zebra  metric 20 external 192.168.0.0/24 dev eth0  proto
>>> kernel  scope link  src 192.168.0.15
>>> 
>>> Signed-off-by: Scott Feldman <sfeldma@gmail.com>
>> 
>> You know we cannot have a thread about nomenclature without a
>> comment from me.  ;)
>> 
>> My only concern about 'external' is whether or not people will
>> gloss over it since many of the routes listed will be to networks
>> that actually are external to the system.  That namespace
>> collision could seem awkward if you are not a traditional
>> follower of this list. Listing an FDB entry as 'external' does
>> not have the same issue since all FDB entries are local to the
>> system, so I didn't even think about the potential when that set
>> was posted.
>> 
>> I would like to just call this 'hardware' since that is what we
>> appear to be using for offload and would make it clear to the
>> user that this route was in hardware as well as in the kernel.
>> I'd say the same for FDB entries, too.
>> 
>> Scott, you have lots of experience in both traditional and Linux
>> worlds, do you think my concern about confusion is unnecessary?
> 
> Votes so far: 1 for "external", 1 for "hardware", 1 for "offload"
> or "hw".
> 
> Good point about confusion wrt routes to non-local networks.

My $0.02, "hardware" seems most appropriate to me.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJU/c+XAAoJEOVv75VaS+3O26oQAJcXXV9zqKMbme8r3Cj0XdfQ
fMBPluam7f4ZLcio4x/AG41CMOp4Wr9tWwV9nz7HgOxJ5YvpWqYqMc75oLMQtC/z
Ze4x0kRIS/zuk/kGD/8Lkh/ZAykjGM9J5gf1CVh5UI0D9h1Z5SCz8dkHbEkqvy8j
Pf/nNH5gaZCyM9QCzirXeSZsxjUtulIHibQiVn0qYbV4NeX0hq7uYvRCJ0OIG+Hb
cYJFhp2s9Lp075QELxLQqlHuZMMtX8xzL3N83AhXyyAZdW+R/Z8tjutHQsHrTdEd
+ErObbVdV4794gQDqB5SnuV+yIVRaeW6crls3r56WIwJS7eM0BhYj0iQLRqX+bEq
HjdUaOp+J3SbssIeLqkItBNsMtuMQWqpdBvJfPVXmFAyHaWv7i6M1S6logrBd+RH
ro16bGKOX/s/i0UoNBmNFoXHItIeBpfgdPxldCekUXhbuBObx2cRPZFaAclg4eO/
LQGZALgShFrI25+fA+MlngybI8MmLk7gdASfKmlI7BNHcuMcLXomQZx009GOGdJM
VQTUugAksOTUa6wMVJaNzNvtw3rszZEHwSWK+qK43om/Jsk4/1/kc3JEwDt0aZvn
O7f4Yh4R3fjyWYOf5ynYXjBfG2UNrEJknkVRJb2Ui6k0nZ3xNqggV89BFi5U3uop
OqrY1HzqmPz+sjSVeSzK
=wyRn
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-09 16:51     ` Jeff Kirsher
@ 2015-03-09 17:53       ` John W. Linville
  0 siblings, 0 replies; 13+ messages in thread
From: John W. Linville @ 2015-03-09 17:53 UTC (permalink / raw)
  To: jeffrey.t.kirsher
  Cc: Scott Feldman, Andy Gospodarek, Netdev, stephen,
	Jiří Pírko

On Mon, Mar 09, 2015 at 09:51:35AM -0700, Jeff Kirsher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> On 03/09/2015 09:16 AM, Scott Feldman wrote:
> > On Mon, Mar 9, 2015 at 7:02 AM, Andy Gospodarek 
> > <gospo@cumulusnetworks.com> wrote:
> >> On Sat, Mar 07, 2015 at 10:15:35PM -0800, sfeldma@gmail.com
> >> wrote:
> >>> From: Scott Feldman <sfeldma@gmail.com>
> >>> 
> >>> On ip route print dump, label externally offloaded routes with
> >>> "external". Offloaded routes are flagged with RTNH_F_EXTERNAL,
> >>> a recent additon to net-next.  For example:
> >>> 
> >>> $ ip route default via 192.168.0.2 dev eth0 11.0.0.0/30 dev
> >>> swp1  proto kernel  scope link  src 11.0.0.2 external 
> >>> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20
> >>> external 11.0.0.8/30 dev swp2  proto kernel  scope link  src
> >>> 11.0.0.10 external 11.0.0.12/30 via 11.0.0.9 dev swp2  proto
> >>> zebra  metric 20 external 12.0.0.2  proto zebra  metric 30
> >>> external nexthop via 11.0.0.1  dev swp1 weight 1 nexthop via
> >>> 11.0.0.9  dev swp2 weight 1 12.0.0.3 via 11.0.0.1 dev swp1
> >>> proto zebra  metric 20 external 12.0.0.4 via 11.0.0.9 dev swp2
> >>> proto zebra  metric 20 external 192.168.0.0/24 dev eth0  proto
> >>> kernel  scope link  src 192.168.0.15
> >>> 
> >>> Signed-off-by: Scott Feldman <sfeldma@gmail.com>
> >> 
> >> You know we cannot have a thread about nomenclature without a
> >> comment from me.  ;)
> >> 
> >> My only concern about 'external' is whether or not people will
> >> gloss over it since many of the routes listed will be to networks
> >> that actually are external to the system.  That namespace
> >> collision could seem awkward if you are not a traditional
> >> follower of this list. Listing an FDB entry as 'external' does
> >> not have the same issue since all FDB entries are local to the
> >> system, so I didn't even think about the potential when that set
> >> was posted.
> >> 
> >> I would like to just call this 'hardware' since that is what we
> >> appear to be using for offload and would make it clear to the
> >> user that this route was in hardware as well as in the kernel.
> >> I'd say the same for FDB entries, too.
> >> 
> >> Scott, you have lots of experience in both traditional and Linux
> >> worlds, do you think my concern about confusion is unnecessary?
> > 
> > Votes so far: 1 for "external", 1 for "hardware", 1 for "offload"
> > or "hw".
> > 
> > Good point about confusion wrt routes to non-local networks.
> 
> My $0.02, "hardware" seems most appropriate to me.

Ditto...

-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-08  6:15 [PATCH iproute2] route: label externally offloaded routes sfeldma
                   ` (2 preceding siblings ...)
  2015-03-09 14:02 ` Andy Gospodarek
@ 2015-03-15 19:39 ` Stephen Hemminger
  2015-03-15 20:08   ` Scott Feldman
  2015-03-15 19:41 ` Stephen Hemminger
  4 siblings, 1 reply; 13+ messages in thread
From: Stephen Hemminger @ 2015-03-15 19:39 UTC (permalink / raw)
  To: sfeldma; +Cc: netdev, jiri

On Sat,  7 Mar 2015 22:15:35 -0800
sfeldma@gmail.com wrote:

> From: Scott Feldman <sfeldma@gmail.com>
> 
> On ip route print dump, label externally offloaded routes with "external".
> Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
> net-next.  For example:
> 
> $ ip route
> default via 192.168.0.2 dev eth0
> 11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
> 11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
> 11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
> 12.0.0.2  proto zebra  metric 30 external
>         nexthop via 11.0.0.1  dev swp1 weight 1
>         nexthop via 11.0.0.9  dev swp2 weight 1
> 12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
> 12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
> 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
> 
> Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Applied to net-next branch of iproute2

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-08  6:15 [PATCH iproute2] route: label externally offloaded routes sfeldma
                   ` (3 preceding siblings ...)
  2015-03-15 19:39 ` Stephen Hemminger
@ 2015-03-15 19:41 ` Stephen Hemminger
  4 siblings, 0 replies; 13+ messages in thread
From: Stephen Hemminger @ 2015-03-15 19:41 UTC (permalink / raw)
  To: sfeldma; +Cc: netdev, jiri

On Sat,  7 Mar 2015 22:15:35 -0800
sfeldma@gmail.com wrote:

> From: Scott Feldman <sfeldma@gmail.com>
> 
> On ip route print dump, label externally offloaded routes with "external".
> Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
> net-next.  For example:
> 
> $ ip route
> default via 192.168.0.2 dev eth0
> 11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
> 11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
> 11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
> 12.0.0.2  proto zebra  metric 30 external
>         nexthop via 11.0.0.1  dev swp1 weight 1
>         nexthop via 11.0.0.9  dev swp2 weight 1
> 12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
> 12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
> 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
> 
> Signed-off-by: Scott Feldman <sfeldma@gmail.com>


All iproute2 commands should be invertable.
If you show something you need to accept that as input.
Please fix that.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH iproute2] route: label externally offloaded routes
  2015-03-15 19:39 ` Stephen Hemminger
@ 2015-03-15 20:08   ` Scott Feldman
  0 siblings, 0 replies; 13+ messages in thread
From: Scott Feldman @ 2015-03-15 20:08 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Netdev, Jiří Pírko

On Sun, Mar 15, 2015 at 12:39 PM, Stephen Hemminger
<stephen@networkplumber.org> wrote:
> On Sat,  7 Mar 2015 22:15:35 -0800
> sfeldma@gmail.com wrote:
>
>> From: Scott Feldman <sfeldma@gmail.com>
>>
>> On ip route print dump, label externally offloaded routes with "external".
>> Offloaded routes are flagged with RTNH_F_EXTERNAL, a recent additon to
>> net-next.  For example:
>>
>> $ ip route
>> default via 192.168.0.2 dev eth0
>> 11.0.0.0/30 dev swp1  proto kernel  scope link  src 11.0.0.2 external
>> 11.0.0.4/30 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>> 11.0.0.8/30 dev swp2  proto kernel  scope link  src 11.0.0.10 external
>> 11.0.0.12/30 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>> 12.0.0.2  proto zebra  metric 30 external
>>         nexthop via 11.0.0.1  dev swp1 weight 1
>>         nexthop via 11.0.0.9  dev swp2 weight 1
>> 12.0.0.3 via 11.0.0.1 dev swp1  proto zebra  metric 20 external
>> 12.0.0.4 via 11.0.0.9 dev swp2  proto zebra  metric 20 external
>> 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.15
>>
>> Signed-off-by: Scott Feldman <sfeldma@gmail.com>
>
> Applied to net-next branch of iproute2

Oops, sorry Stephan, I just sent a v2 with a change to the label.  Can
you apply that version?

> All iproute2 commands should be invertable.
> If you show something you need to accept that as input.
>  Please fix that.

Working on it.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-03-15 20:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-08  6:15 [PATCH iproute2] route: label externally offloaded routes sfeldma
2015-03-08  6:57 ` Jiri Pirko
     [not found]   ` <CAJieiUgz9O7LFhzONx5JKRv0o4+6hSHNtRgKaaKAn2ph4jdC2g@mail.gmail.com>
2015-03-08 22:10     ` Scott Feldman
2015-03-09  0:27       ` roopa
2015-03-09  6:25         ` Jiri Pirko
2015-03-08 14:14 ` roopa
2015-03-09 14:02 ` Andy Gospodarek
2015-03-09 16:16   ` Scott Feldman
2015-03-09 16:51     ` Jeff Kirsher
2015-03-09 17:53       ` John W. Linville
2015-03-15 19:39 ` Stephen Hemminger
2015-03-15 20:08   ` Scott Feldman
2015-03-15 19:41 ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.