aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-08-09 14:41:16 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-09 22:51:47 -0700
commit68277a2c9d32fd9090247a5c08aaf1353049c0b1 (patch)
tree342c69a2ca30843b54ed50f3887bba078904df21 /include/net/dsa.h
parentMerge branch 'mediatek-bring-up-QDMA-RX-ring-0' (diff)
downloadwireguard-linux-68277a2c9d32fd9090247a5c08aaf1353049c0b1.tar.xz
wireguard-linux-68277a2c9d32fd9090247a5c08aaf1353049c0b1.zip
net-next: dsa: move struct dsa_device_ops to the global header file
We need to access this struct from within the flow_dissector to fix dissection for packets coming in on DSA devices. Signed-off-by: Muciri Gatimu <muciri@openmesh.com> Signed-off-by: Shashidhar Lakkavalli <shashidhar.lakkavalli@openmesh.com> Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index a4f66dbb4b7c..65d7804c6f69 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -101,6 +101,13 @@ struct dsa_platform_data {
struct packet_type;
+struct dsa_device_ops {
+ struct sk_buff *(*xmit)(struct sk_buff *skb, struct net_device *dev);
+ struct sk_buff *(*rcv)(struct sk_buff *skb, struct net_device *dev,
+ struct packet_type *pt,
+ struct net_device *orig_dev);
+};
+
struct dsa_switch_tree {
struct list_head list;