diff options
author | Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> | 2014-10-07 12:56:06 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2015-03-11 13:19:02 (GMT) |
commit | d84b37eb3f1fa37f3a8243e6346d125c97bbda68 (patch) | |
tree | 6e2a9a9bc7f4c6ece1da3834cdcbd4b1318f43fd /drivers | |
parent | 350e0ecf99128144bd11c48fc2267007371701f1 (diff) | |
download | linux-fsl-qoriq-d84b37eb3f1fa37f3a8243e6346d125c97bbda68.tar.xz |
dpaa_eth: convert define into net byte order
All the constant definitions are used in CPU endianess and the skb fields are in
network byte order. A conversion should be used.
Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com>
Change-Id: I0b07bb64b9cb2cf5c490e63152da0dd26e67131c
Reviewed-on: http://git.am.freescale.net:8181/20985
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/32490
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h index 34d09f7..99728f4 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h @@ -468,7 +468,8 @@ dpa_fd_offset(const struct qm_fd *fd) static inline int dpa_check_rx_mtu(struct sk_buff *skb, int mtu) { if (unlikely(skb->len > mtu)) - if ((skb->protocol != ETH_P_8021Q) || (skb->len > mtu + 4)) + if ((skb->protocol != htons(ETH_P_8021Q)) + || (skb->len > mtu + 4)) return -1; return 0; |