Thread (148 messages) 148 messages, 14 authors, 2014-12-09

Re: [patch net-next v3 15/17] bridge: add new hwmode swdev

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2014-11-25 16:07:58

On 11/25/14 05:28, Jiri Pirko wrote:
quoted hunk ↗ jump to hunk
From: Scott Feldman <redacted>

Current hwmode settings are "vepa" or "veb".  These are for NIC interfaces
with basic bridging function offloaded to HW.  Add new "swdev" for full
switch device offloads.

Signed-off-by: Scott Feldman <redacted>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
new in v3
---
  include/uapi/linux/if_bridge.h | 1 +
  1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h
index da17e45..60425ca 100644
--- a/include/uapi/linux/if_bridge.h
+++ b/include/uapi/linux/if_bridge.h
@@ -105,6 +105,7 @@ struct __fdb_entry {

  #define BRIDGE_MODE_VEB		0	/* Default loopback mode */
  #define BRIDGE_MODE_VEPA	1	/* 802.1Qbg defined VEPA mode */
+#define BRIDGE_MODE_SWDEV       2       /* Full switch device offload */

  /* Bridge management nested attributes
   * [IFLA_AF_SPEC] = {
Again - Why is this not a generic interface the way Roopa had it?
We need to do offloads for a lot of other things than just bridge..

cheers,
jamal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help