net/i40e: consider QinQ when setting MTU
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Tue, 2 May 2017 01:51:58 +0000 (09:51 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 May 2017 15:24:22 +0000 (17:24 +0200)
commitff8282f4bbcdd33b64e1a2990edfdb0f5f5e961f
tree09e57b345984b077c671084f1d6a14f3ac1de05a
parentb4325edd9a07692e449f417f7cdff0327c954c70
net/i40e: consider QinQ when setting MTU

When counting max packet length from MTU, count
VLAN tag length twice for QinQ packets.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h
drivers/net/i40e/i40e_ethdev_vf.c