From: Vladimir Oltean Date: Sat, 26 Sep 2020 19:32:10 +0000 (+0300) Subject: net: dsa: tag_dsa: use the generic flow dissector procedure X-Git-Tag: v5.10.7~1401^2~138^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11f5011189db4fb670d5043df299af4e26f2d7c7;p=platform%2Fkernel%2Flinux-rpi.git net: dsa: tag_dsa: use the generic flow dissector procedure Remove the .flow_dissect procedure, so the flow dissector will call the generic variant which works for this tagging protocol. Cc: Andrew Lunn Signed-off-by: Vladimir Oltean Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/net/dsa/tag_dsa.c b/net/dsa/tag_dsa.c index ef15aee..0b756fa 100644 --- a/net/dsa/tag_dsa.c +++ b/net/dsa/tag_dsa.c @@ -142,19 +142,11 @@ static struct sk_buff *dsa_rcv(struct sk_buff *skb, struct net_device *dev, return skb; } -static void dsa_tag_flow_dissect(const struct sk_buff *skb, __be16 *proto, - int *offset) -{ - *offset = 4; - *proto = ((__be16 *)skb->data)[1]; -} - static const struct dsa_device_ops dsa_netdev_ops = { .name = "dsa", .proto = DSA_TAG_PROTO_DSA, .xmit = dsa_xmit, .rcv = dsa_rcv, - .flow_dissect = dsa_tag_flow_dissect, .overhead = DSA_HLEN, };