]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f7b5dbe539a5e5ff2c97a5c06cff02145cf118b
tree2539768dd0c876b63a12a8b039a301860cec9da7
parentb57672720cda0eec001592e3d20d6d7aec249ef5
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