summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-07-01 08:51:33 -0700
committerDavid S. Miller <davem@davemloft.net>2017-07-01 08:51:33 -0700
commit13834451950f557cbbc3129426e72e763f2d63ee (patch)
tree5109cd619f1b021f2b6d281c1ef60a629ba65fa3 /include
parent7f304b9efabbad584b093289d135bebdc09b222e (diff)
parent81f3ddf2547d40c3d4878aa66ce837177665ce3c (diff)
downloadlinux-13834451950f557cbbc3129426e72e763f2d63ee.tar.gz
linux-13834451950f557cbbc3129426e72e763f2d63ee.tar.bz2
linux-13834451950f557cbbc3129426e72e763f2d63ee.zip
Merge branch 'nfp-introduce-flower-offload-capabilities'
Simon Horman says: ==================== nfp: introduce flower offload capabilities this series adds flower offload to the NFP driver. It builds on recent work to add representor and a skeleton flower app - now the app does what its name says. In general the approach taken is to allow some flows within the universe of possible flower matches and tc actions to be offloaded. It is planned that this support will grow over time but the support offered by this patch-set seems to be a reasonable starting point. Key Changes since v2: * Revised flow structures to simplify setup/teardown and locking of stats * Addressed other code-change review of v2 Other review questions regarding v2 have been answered on netdev. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/switchdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index c784a6ac6ef1..8ae9e3b6392e 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -217,6 +217,8 @@ void switchdev_port_fwd_mark_set(struct net_device *dev,
bool switchdev_port_same_parent_id(struct net_device *a,
struct net_device *b);
+
+#define SWITCHDEV_SET_OPS(netdev, ops) ((netdev)->switchdev_ops = (ops))
#else
static inline void switchdev_deferred_process(void)
@@ -322,6 +324,8 @@ static inline bool switchdev_port_same_parent_id(struct net_device *a,
return false;
}
+#define SWITCHDEV_SET_OPS(netdev, ops) do {} while (0)
+
#endif
#endif /* _LINUX_SWITCHDEV_H_ */