net-next: dsa: move struct dsa_device_ops to the global header file
authorJohn Crispin <john@phrozen.org>
Wed, 9 Aug 2017 12:41:16 +0000 (14:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:51:47 +0000 (22:51 -0700)
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>
include/net/dsa.h
net/dsa/dsa_priv.h

index a4f66dbb4b7c06f3bae090802ca408ac197be479..65d7804c6f69c6337bbc467457cc3b9dcd113b78 100644 (file)
@@ -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;
 
index 1debf9c42fc4219c29bd8738b797d2168276a3c8..9c3eeb72462d88cfa77704884ad083c8e462bf5b 100644 (file)
@@ -65,13 +65,6 @@ struct dsa_notifier_vlan_info {
        int port;
 };
 
-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_slave_priv {
        /* Copy of dp->ds->dst->tag_ops->xmit for faster access in hot path */
        struct sk_buff *        (*xmit)(struct sk_buff *skb,