net/enic: check maximum packet size in Tx prepare handler
authorHyong Youb Kim <hyonkim@cisco.com>
Fri, 29 Jun 2018 09:29:41 +0000 (02:29 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:54:25 +0000 (01:54 +0200)
commit5a12c387405a657aba23645fd864ac0771437fd5
treee04066f4f12dd8e806b4004a91feb1c6dfe7e8e3
parented933c35caab31f8923d9809d0dcae275feed000
net/enic: check maximum packet size in Tx prepare handler

The default tx handler checks the maximum packet size. Check it in the
prepare handler too. WQ stops working if the app/driver tries to send
oversized packets, so these checks are unavoidable.

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_rxtx.c