vmxnet3: fix Tx flags check
authorYong Wang <yongwang@vmware.com>
Mon, 28 Mar 2016 22:35:55 +0000 (15:35 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 13:40:43 +0000 (15:40 +0200)
commitaa6fed42b002abd90530d1d886c5b218721ff697
tree7e3fdddb18e7cf169a345ff7f1d34ebddc40df3e
parent79c4319c1a5d66c656b0997d7ea8fc3a42d91cae
vmxnet3: fix Tx flags check

Now that vmxnet3 supports TCP/UDP checksum offload, let's update
the default txq flags to allow such offloads.  Also fixed the tx
queue setup check to allow TCP/UDP checksum and only error out
if SCTP checksum is requested.

Fixes: f598fd063bb1 ("vmxnet3: add Tx L4 checksum offload")

Reported-by: Heng Ding <hengx.ding@intel.com>
Signed-off-by: Yong Wang <yongwang@vmware.com>
drivers/net/vmxnet3/vmxnet3_ethdev.c
drivers/net/vmxnet3/vmxnet3_rxtx.c