igc: Enable HW VLAN Insertion and HW VLAN Stripping
authorMuhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Thu, 3 Jun 2021 17:44:54 +0000 (01:44 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 4 Jun 2021 16:14:39 +0000 (09:14 -0700)
commit8d7449630e3450bc0546dc0cb692fbb57d1852c0
treefb106d6ee2fc5068222655062912e40cf6cec3f2
parent5cde7beb27affd0ccd96ccb671adb1539866738b
igc: Enable HW VLAN Insertion and HW VLAN Stripping

Add HW VLAN acceleration protocol handling. In case of HW VLAN tagging,
we need that protocol available in the ndo_start_xmit(), so that it will be
stored in a new fields in the skb.

HW offloading is set to OFF by default.
Users are allow to turn on/off Rx/Tx HW VLAN acceleration via ethtool.

Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Acked-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc.h
drivers/net/ethernet/intel/igc/igc_defines.h
drivers/net/ethernet/intel/igc/igc_main.c
drivers/net/ethernet/intel/igc/igc_regs.h