diff options
author | Cristian Sovaiala <cristian.sovaiala@freescale.com> | 2013-03-14 19:56:11 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-04-16 21:01:20 (GMT) |
commit | 5c641f51cfe16b808e3fd4fcb4580707236ec5e6 (patch) | |
tree | 4a25ce12f9ccdf39d1ace33642e2a9bcab2c0890 | |
parent | 4c914d1aa1da3d1384ada91701d9ecd32abed08a (diff) | |
download | linux-fsl-qoriq-5c641f51cfe16b808e3fd4fcb4580707236ec5e6.tar.xz |
dpaa_eth: MTU checking is not necessary for IP Reassembled frames
Do not limit IP Reassembled frames to MTU size.
Change-Id: I8ec3ca5e23165d7ee6397935dff26c7a18903fef
Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/1280
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth.c index 20aaa7f..1db77fd 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.c @@ -2104,7 +2104,9 @@ shared_rx_dqrr(struct qman_portal *portal, struct qman_fq *fq, skb_copied: skb->protocol = eth_type_trans(skb, net_dev); - if (unlikely(dpa_check_rx_mtu(skb, net_dev->mtu))) { + /* IP Reassembled frames are allowed to be larger than MTU */ + if (unlikely(dpa_check_rx_mtu(skb, net_dev->mtu) && + !(fd->status & FM_FD_IPR))) { percpu_priv->stats.rx_dropped++; dev_kfree_skb_any(skb); goto out; |