cxgb4: Discard the packet if the length is greater than mtu
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 5 May 2015 09:29:56 +0000 (14:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 May 2015 23:31:50 +0000 (19:31 -0400)
commit637d3e99735102f06c3eee095d2bbebf1863ca24
tree2539768dd0c876b63a12a8b039a301860cec9da7
parenta3bfb6179cd1277b259f86b022f3340f3bb49cac
cxgb4: Discard the packet if the length is greater than mtu

pktgen sends raw udp packets and bypasses most of the
linux networking stack. User can specify different packet sizes.
Hence we need to discard the packet if the length is greater than mtu

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c
drivers/net/ethernet/chelsio/cxgb4vf/sge.c