Re: [PATCH v3 4/5] net: dsa: add support for Atheros AR9331 TAG format

2019-10-21 Thread Oleksij Rempel
On Mon, Oct 21, 2019 at 05:49:00PM +0200, Andrew Lunn wrote: > > +static struct sk_buff *ar9331_tag_rcv(struct sk_buff *skb, > > + struct net_device *ndev, > > + struct packet_type *pt) > > +{ > > + u8 ver, port; > > + u16 hdr; >

Re: [PATCH v3 4/5] net: dsa: add support for Atheros AR9331 TAG format

2019-10-21 Thread Andrew Lunn
> +static struct sk_buff *ar9331_tag_rcv(struct sk_buff *skb, > + struct net_device *ndev, > + struct packet_type *pt) > +{ > + u8 ver, port; > + u16 hdr; > + > + if (unlikely(!pskb_may_pull(skb, AR9331_HDR_LEN))) > +

[PATCH v3 4/5] net: dsa: add support for Atheros AR9331 TAG format

2019-10-20 Thread Oleksij Rempel
Add support for tag format used in Atheros AR9331 build-in switch. Signed-off-by: Oleksij Rempel --- include/net/dsa.h| 2 + net/dsa/Kconfig | 6 +++ net/dsa/Makefile | 1 + net/dsa/tag_ar9331.c | 97 4 files changed, 106