net/i40e: optimize TPID fetching
authorChenmin Sun <chenmin.sun@intel.com>
Fri, 17 Jul 2020 17:36:57 +0000 (01:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 11:54:54 +0000 (13:54 +0200)
commit93c31e28a0a8b12df51f69375798a123beafbf04
treecdd7396b3c0cb10ddcc5bcb72a31df1f9c896b74
parent3e44dbd0284ca611009ce02d251ed8ecea48a730
net/i40e: optimize TPID fetching

This patch moves the fetching the device tpid to where it really needs,
rather than fetching it every time when entered the functions.
This is because this operation costs too many cycles and it is used only
when matching the ethernet header.

Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Reviewed-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_flow.c