Thread (11 messages) flat view 11 messages, 7 authors, 2021-02-17

Re: [PATCH] net: dsa: tag_rtl4_a: Support also egress tags

From: DENG Qingfang <dqfext@gmail.com>
Date: 2021-02-17 05:41:01

On Wed, Feb 17, 2021 at 7:55 AM Linus Walleij [off-list ref] wrote:
+       if (skb_cow_head(skb, RTL4_A_HDR_LEN) < 0)
+               return NULL;
skb_cow_head is unnecessary here. DSA core will do it for you.
+
+       out = (RTL4_A_PROTOCOL_RTL8366RB << 12) | (2 << 8);
+       /* The lower bits is the port numer */
Typo?
+       out |= (u8)dp->index;
+       p = (u16 *)(tag + 2);
+       *p = htons(out);
+
        return skb;
 }

--
2.29.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help