net/i40e: fix checking offload
authorYanglong Wu <yanglong.wu@intel.com>
Fri, 27 Apr 2018 08:14:07 +0000 (16:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 17:01:00 +0000 (18:01 +0100)
commita6d1117e9eb83da3f1b80c893f095982d0db2f2d
tree9e45ce1adb280b4b8b0b39a8cf11801e6e71b504
parent1c251e7bf0c5fe1cb6cdeeb6fa89ed10aa667900
net/i40e: fix checking offload

Missing "return -ENOTSUP" will always lead to illegal offload
passing through offload checking.

Fixes: 7497d3e2f777 ("net/i40e: convert to new Tx offloads API")

Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
drivers/net/i40e/i40e_rxtx.c