Commit e0ea05d0 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: systemport: fix comment about HW prepending 2bytes

The comment about how the hardware prepends 2bytes to align the IP
header on a 4-byte boundary was not correct, fix that.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ad51c610
...@@ -528,9 +528,9 @@ static unsigned int bcm_sysport_desc_rx(struct bcm_sysport_priv *priv, ...@@ -528,9 +528,9 @@ static unsigned int bcm_sysport_desc_rx(struct bcm_sysport_priv *priv,
if (likely(status & DESC_L4_CSUM)) if (likely(status & DESC_L4_CSUM))
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
/* Hardware pre-pends packets with 2bytes between Ethernet /* Hardware pre-pends packets with 2bytes before Ethernet
* and IP header plus we have the Receive Status Block, strip * header plus we have the Receive Status Block, strip off all
* off all of this from the SKB. * of this from the SKB.
*/ */
skb_pull(skb, sizeof(*rsb) + 2); skb_pull(skb, sizeof(*rsb) + 2);
len -= (sizeof(*rsb) + 2); len -= (sizeof(*rsb) + 2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment