summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorFlorian Westphal2017-08-17 16:47:00 +0200
committerDavid S. Miller2017-08-21 19:39:11 +0200
commit89e49506bc62520f93e64a278293444319a6aebb (patch)
tree48ae52027755af0a2f3424f7d940c2e09c092275 /include/net/dsa.h
parentMerge branch 'bpf-mips-jit-improvements' (diff)
downloadkernel-qcow2-linux-89e49506bc62520f93e64a278293444319a6aebb.tar.gz
kernel-qcow2-linux-89e49506bc62520f93e64a278293444319a6aebb.tar.xz
kernel-qcow2-linux-89e49506bc62520f93e64a278293444319a6aebb.zip
dsa: remove unused net_device arg from handlers
compile tested only, but saw no warnings/errors with allmodconfig build. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 7f46b521313e..398ca8d70ccd 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -104,8 +104,7 @@ 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 packet_type *pt);
int (*flow_dissect)(const struct sk_buff *skb, __be16 *proto,
int *offset);
};
@@ -134,8 +133,7 @@ struct dsa_switch_tree {
/* Copy of tag_ops->rcv for faster access in hot path */
struct sk_buff * (*rcv)(struct sk_buff *skb,
struct net_device *dev,
- struct packet_type *pt,
- struct net_device *orig_dev);
+ struct packet_type *pt);
/*
* The switch port to which the CPU is attached.