All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware
@ 2015-03-25  0:33 Andy Gospodarek
  2015-03-25  1:48 ` Scott Feldman
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andy Gospodarek @ 2015-03-25  0:33 UTC (permalink / raw)
  To: netdev
  Cc: Jamal Hadi Salim, Jeff Kirsher, Jiri Pirko, John W. Linville,
	Roopa Prabhu, Scott Feldman, Stephen Hemminger

The kernel now has the capability to offload FDB and FIB entries to hardware.
It is important to let users know if table entries are also offloaded to
hardware.  Currently offloaded FDB entries are indicated by the existence of
the flag 'external' on the entry as of the following commit:

commit 28467b7f3facd6114b2fbe0c9fecf57adbd52e12
Author: Scott Feldman <sfeldma@gmail.com>
Date:   Thu Dec 4 09:57:15 2014 +0100

    bridge/fdb: add flag/indication for FDB entry synced from offload device

When the patch to add support for indicating that FIB entries were also
offloaded as posted to netdev by Scott Feldman it became clear that 'external'
would not be an ideal name for routes.  There could definitely be confusion
about what this might mean since many routes are to external networks -- a
collision/confusion that did not happen with FDB.

Scott Feldman asked me to check with others and build concensus around a name.
After speaking with several people about this I am proposing we refer to both
FDB and FIB entries that are currently backed by hardware (based on the work
done in rocker) with the flag 'offload' appended to the end ofthe entry.

Some people liked the string 'external,' others liked 'hardware,' but the point
is to communicate that these routes are available to something that will will
offload the forwarding normally done by the kernel.  Since the term 'offload'
is used so frequently it seems appropriate to use the same language in
ip/bridge output.

The term 'offload' also seems to resonate with many of the people who have
responded on Scott's original thread or to those who I reached out to directly
and did respond to my query, so it seems we have reached consensus that it
should be the term used going forward.

Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
CC: Jamal Hadi Salim <jhs@mojatatu.com>
CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
CC: Jiri Pirko <jiri@resnulli.us>
CC: John W. Linville <linville@tuxdriver.com>
CC: Roopa Prabhu <roopa@cumulusnetworks.com>
CC: Scott Feldman <sfeldma@gmail.com>
CC: Stephen Hemminger <stephen@networkplumber.org>
---
 bridge/fdb.c | 2 +-
 ip/iproute.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bridge/fdb.c b/bridge/fdb.c
index 3c33e22..e34933b 100644
--- a/bridge/fdb.c
+++ b/bridge/fdb.c
@@ -159,7 +159,7 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
 	if (r->ndm_flags & NTF_ROUTER)
 		fprintf(fp, "router ");
 	if (r->ndm_flags & NTF_EXT_LEARNED)
-		fprintf(fp, "external ");
+		fprintf(fp, "offload ");
 
 	fprintf(fp, "%s\n", state_n2a(r->ndm_state));
 	return 0;
diff --git a/ip/iproute.c b/ip/iproute.c
index 024d401..34a5216 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -412,6 +412,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, "offload ");
 	if (r->rtm_flags & RTM_F_NOTIFY)
 		fprintf(fp, "notify ");
 	if (tb[RTA_MARK]) {
-- 
1.9.3

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

* Re: [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware
  2015-03-25  0:33 [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware Andy Gospodarek
@ 2015-03-25  1:48 ` Scott Feldman
  2015-03-25  7:44   ` Simon Horman
  2015-03-25  4:28 ` roopa
  2015-03-25  6:40 ` Jiri Pirko
  2 siblings, 1 reply; 5+ messages in thread
From: Scott Feldman @ 2015-03-25  1:48 UTC (permalink / raw)
  To: Andy Gospodarek
  Cc: Netdev, Jamal Hadi Salim, Jeff Kirsher, Jiri Pirko,
	John W. Linville, Roopa Prabhu, Stephen Hemminger

On Tue, Mar 24, 2015 at 5:33 PM, Andy Gospodarek
<gospo@cumulusnetworks.com> wrote:
> The kernel now has the capability to offload FDB and FIB entries to hardware.
> It is important to let users know if table entries are also offloaded to
> hardware.  Currently offloaded FDB entries are indicated by the existence of
> the flag 'external' on the entry as of the following commit:
>
> commit 28467b7f3facd6114b2fbe0c9fecf57adbd52e12
> Author: Scott Feldman <sfeldma@gmail.com>
> Date:   Thu Dec 4 09:57:15 2014 +0100
>
>     bridge/fdb: add flag/indication for FDB entry synced from offload device
>
> When the patch to add support for indicating that FIB entries were also
> offloaded as posted to netdev by Scott Feldman it became clear that 'external'
> would not be an ideal name for routes.  There could definitely be confusion
> about what this might mean since many routes are to external networks -- a
> collision/confusion that did not happen with FDB.
>
> Scott Feldman asked me to check with others and build concensus around a name.
> After speaking with several people about this I am proposing we refer to both
> FDB and FIB entries that are currently backed by hardware (based on the work
> done in rocker) with the flag 'offload' appended to the end ofthe entry.
>
> Some people liked the string 'external,' others liked 'hardware,' but the point
> is to communicate that these routes are available to something that will will
> offload the forwarding normally done by the kernel.  Since the term 'offload'
> is used so frequently it seems appropriate to use the same language in
> ip/bridge output.
>
> The term 'offload' also seems to resonate with many of the people who have
> responded on Scott's original thread or to those who I reached out to directly
> and did respond to my query, so it seems we have reached consensus that it
> should be the term used going forward.
>
> Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
> CC: Jamal Hadi Salim <jhs@mojatatu.com>
> CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> CC: Jiri Pirko <jiri@resnulli.us>
> CC: John W. Linville <linville@tuxdriver.com>
> CC: Roopa Prabhu <roopa@cumulusnetworks.com>
> CC: Scott Feldman <sfeldma@gmail.com>
> CC: Stephen Hemminger <stephen@networkplumber.org>

Acked-by: Scott Feldman <sfeldma@gmail.com>

Thanks Andy.

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

* Re: [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware
  2015-03-25  0:33 [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware Andy Gospodarek
  2015-03-25  1:48 ` Scott Feldman
@ 2015-03-25  4:28 ` roopa
  2015-03-25  6:40 ` Jiri Pirko
  2 siblings, 0 replies; 5+ messages in thread
From: roopa @ 2015-03-25  4:28 UTC (permalink / raw)
  To: Andy Gospodarek
  Cc: netdev, Jamal Hadi Salim, Jeff Kirsher, Jiri Pirko,
	John W. Linville, Scott Feldman, Stephen Hemminger

On 3/24/15, 5:33 PM, Andy Gospodarek wrote:
> The kernel now has the capability to offload FDB and FIB entries to hardware.
> It is important to let users know if table entries are also offloaded to
> hardware.  Currently offloaded FDB entries are indicated by the existence of
> the flag 'external' on the entry as of the following commit:
>
> commit 28467b7f3facd6114b2fbe0c9fecf57adbd52e12
> Author: Scott Feldman <sfeldma@gmail.com>
> Date:   Thu Dec 4 09:57:15 2014 +0100
>
>      bridge/fdb: add flag/indication for FDB entry synced from offload device
>
> When the patch to add support for indicating that FIB entries were also
> offloaded as posted to netdev by Scott Feldman it became clear that 'external'
> would not be an ideal name for routes.  There could definitely be confusion
> about what this might mean since many routes are to external networks -- a
> collision/confusion that did not happen with FDB.
>
> Scott Feldman asked me to check with others and build concensus around a name.
> After speaking with several people about this I am proposing we refer to both
> FDB and FIB entries that are currently backed by hardware (based on the work
> done in rocker) with the flag 'offload' appended to the end ofthe entry.
>
> Some people liked the string 'external,' others liked 'hardware,' but the point
> is to communicate that these routes are available to something that will will
> offload the forwarding normally done by the kernel.  Since the term 'offload'
> is used so frequently it seems appropriate to use the same language in
> ip/bridge output.
>
> The term 'offload' also seems to resonate with many of the people who have
> responded on Scott's original thread or to those who I reached out to directly
> and did respond to my query, so it seems we have reached consensus that it
> should be the term used going forward.
>
> Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
> CC: Jamal Hadi Salim <jhs@mojatatu.com>
> CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> CC: Jiri Pirko <jiri@resnulli.us>
> CC: John W. Linville <linville@tuxdriver.com>
> CC: Roopa Prabhu <roopa@cumulusnetworks.com>
> CC: Scott Feldman <sfeldma@gmail.com>
> CC: Stephen Hemminger <stephen@networkplumber.org>
> ---
>   bridge/fdb.c | 2 +-
>   ip/iproute.c | 2 ++
>   2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/bridge/fdb.c b/bridge/fdb.c
> index 3c33e22..e34933b 100644
> --- a/bridge/fdb.c
> +++ b/bridge/fdb.c
> @@ -159,7 +159,7 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
>   	if (r->ndm_flags & NTF_ROUTER)
>   		fprintf(fp, "router ");
>   	if (r->ndm_flags & NTF_EXT_LEARNED)
> -		fprintf(fp, "external ");
> +		fprintf(fp, "offload ");
>   
>   	fprintf(fp, "%s\n", state_n2a(r->ndm_state));
>   	return 0;
> diff --git a/ip/iproute.c b/ip/iproute.c
> index 024d401..34a5216 100644
> --- a/ip/iproute.c
> +++ b/ip/iproute.c
> @@ -412,6 +412,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, "offload ");
>   	if (r->rtm_flags & RTM_F_NOTIFY)
>   		fprintf(fp, "notify ");
>   	if (tb[RTA_MARK]) {
Thanks andy. This looks good.

Since the flag is part of uapi, I would prefer the flag renamed to 
RTNH_F_OFFLOAD too.
What do others feel ?. It can be a subsequent patch if there are votes.

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

* Re: [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware
  2015-03-25  0:33 [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware Andy Gospodarek
  2015-03-25  1:48 ` Scott Feldman
  2015-03-25  4:28 ` roopa
@ 2015-03-25  6:40 ` Jiri Pirko
  2 siblings, 0 replies; 5+ messages in thread
From: Jiri Pirko @ 2015-03-25  6:40 UTC (permalink / raw)
  To: Andy Gospodarek
  Cc: netdev, Jamal Hadi Salim, Jeff Kirsher, John W. Linville,
	Roopa Prabhu, Scott Feldman, Stephen Hemminger

Wed, Mar 25, 2015 at 01:33:05AM CET, gospo@cumulusnetworks.com wrote:
>The kernel now has the capability to offload FDB and FIB entries to hardware.
>It is important to let users know if table entries are also offloaded to
>hardware.  Currently offloaded FDB entries are indicated by the existence of
>the flag 'external' on the entry as of the following commit:
>
>commit 28467b7f3facd6114b2fbe0c9fecf57adbd52e12
>Author: Scott Feldman <sfeldma@gmail.com>
>Date:   Thu Dec 4 09:57:15 2014 +0100
>
>    bridge/fdb: add flag/indication for FDB entry synced from offload device
>
>When the patch to add support for indicating that FIB entries were also
>offloaded as posted to netdev by Scott Feldman it became clear that 'external'
>would not be an ideal name for routes.  There could definitely be confusion
>about what this might mean since many routes are to external networks -- a
>collision/confusion that did not happen with FDB.
>
>Scott Feldman asked me to check with others and build concensus around a name.
>After speaking with several people about this I am proposing we refer to both
>FDB and FIB entries that are currently backed by hardware (based on the work
>done in rocker) with the flag 'offload' appended to the end ofthe entry.
>
>Some people liked the string 'external,' others liked 'hardware,' but the point
>is to communicate that these routes are available to something that will will
>offload the forwarding normally done by the kernel.  Since the term 'offload'
>is used so frequently it seems appropriate to use the same language in
>ip/bridge output.
>
>The term 'offload' also seems to resonate with many of the people who have
>responded on Scott's original thread or to those who I reached out to directly
>and did respond to my query, so it seems we have reached consensus that it
>should be the term used going forward.
>
>Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>

hmm...okay...

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

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

* Re: [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware
  2015-03-25  1:48 ` Scott Feldman
@ 2015-03-25  7:44   ` Simon Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2015-03-25  7:44 UTC (permalink / raw)
  To: Scott Feldman
  Cc: Andy Gospodarek, Netdev, Jamal Hadi Salim, Jeff Kirsher,
	Jiri Pirko, John W. Linville, Roopa Prabhu, Stephen Hemminger

On Tue, Mar 24, 2015 at 06:48:04PM -0700, Scott Feldman wrote:
> On Tue, Mar 24, 2015 at 5:33 PM, Andy Gospodarek
> <gospo@cumulusnetworks.com> wrote:
> > The kernel now has the capability to offload FDB and FIB entries to hardware.
> > It is important to let users know if table entries are also offloaded to
> > hardware.  Currently offloaded FDB entries are indicated by the existence of
> > the flag 'external' on the entry as of the following commit:
> >
> > commit 28467b7f3facd6114b2fbe0c9fecf57adbd52e12
> > Author: Scott Feldman <sfeldma@gmail.com>
> > Date:   Thu Dec 4 09:57:15 2014 +0100
> >
> >     bridge/fdb: add flag/indication for FDB entry synced from offload device
> >
> > When the patch to add support for indicating that FIB entries were also
> > offloaded as posted to netdev by Scott Feldman it became clear that 'external'
> > would not be an ideal name for routes.  There could definitely be confusion
> > about what this might mean since many routes are to external networks -- a
> > collision/confusion that did not happen with FDB.
> >
> > Scott Feldman asked me to check with others and build concensus around a name.
> > After speaking with several people about this I am proposing we refer to both
> > FDB and FIB entries that are currently backed by hardware (based on the work
> > done in rocker) with the flag 'offload' appended to the end ofthe entry.
> >
> > Some people liked the string 'external,' others liked 'hardware,' but the point
> > is to communicate that these routes are available to something that will will
> > offload the forwarding normally done by the kernel.  Since the term 'offload'
> > is used so frequently it seems appropriate to use the same language in
> > ip/bridge output.
> >
> > The term 'offload' also seems to resonate with many of the people who have
> > responded on Scott's original thread or to those who I reached out to directly
> > and did respond to my query, so it seems we have reached consensus that it
> > should be the term used going forward.
> >
> > Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
> > CC: Jamal Hadi Salim <jhs@mojatatu.com>
> > CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> > CC: Jiri Pirko <jiri@resnulli.us>
> > CC: John W. Linville <linville@tuxdriver.com>
> > CC: Roopa Prabhu <roopa@cumulusnetworks.com>
> > CC: Scott Feldman <sfeldma@gmail.com>
> > CC: Stephen Hemminger <stephen@networkplumber.org>
> 
> Acked-by: Scott Feldman <sfeldma@gmail.com>

FWIW, I have no objections to consistently using "offload".

Acked-by: Simon Horman <simon.horman@netronome.com>

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

end of thread, other threads:[~2015-03-25  7:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25  0:33 [PATCH iproute2] iproute2: unify naming for entries offloaded to hardware Andy Gospodarek
2015-03-25  1:48 ` Scott Feldman
2015-03-25  7:44   ` Simon Horman
2015-03-25  4:28 ` roopa
2015-03-25  6:40 ` Jiri Pirko

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.