diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-06-05 13:22:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-05 18:36:54 -0400 |
commit | e0ea05d00b61a12935dfceefb388eadcde31f35a (patch) | |
tree | 353938131d3145103aebd046a8f5c05c6c4d6014 | |
parent | ad51c6106119adf8565adb179989a06ab4b865bb (diff) |
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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bcmsysport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c index fc84aba0cde0..54b51db0caf3 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.c +++ b/drivers/net/ethernet/broadcom/bcmsysport.c | |||
@@ -528,9 +528,9 @@ static unsigned int bcm_sysport_desc_rx(struct bcm_sysport_priv *priv, | |||
528 | if (likely(status & DESC_L4_CSUM)) | 528 | if (likely(status & DESC_L4_CSUM)) |
529 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 529 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
530 | 530 | ||
531 | /* Hardware pre-pends packets with 2bytes between Ethernet | 531 | /* Hardware pre-pends packets with 2bytes before Ethernet |
532 | * and IP header plus we have the Receive Status Block, strip | 532 | * header plus we have the Receive Status Block, strip off all |
533 | * off all of this from the SKB. | 533 | * of this from the SKB. |
534 | */ | 534 | */ |
535 | skb_pull(skb, sizeof(*rsb) + 2); | 535 | skb_pull(skb, sizeof(*rsb) + 2); |
536 | len -= (sizeof(*rsb) + 2); | 536 | len -= (sizeof(*rsb) + 2); |