What exactly do the rx-vlan-offload and tx-vlan-offload ethtool options do?

This ethtool man page provides only a vague explanation:

   rxvlan on|off
          Specifies whether RX VLAN acceleration should be enabled

   txvlan on|off
          Specifies whether TX VLAN acceleration should be enabled

What exactly do the options do if you can turn them on?

+4
source share
1 answer

Apparently, rxvlanthey txvlanare aliases for the functions of the kernel rx-vlan-hw-parseand, tx-vlan-hw-insertaccordingly (see ethtool.c).

In the kernel, they are translated into netdev NETIF_F_HW_VLAN_CTAG_RX_BITand NETIF_F_HW_VLAN_CTAG_TX_BIT. (See net/core/ethtool.c)

To my knowledge, TX_BIT allows the network adapter to add a VLAN tag during transmission without explicitly placing it in the packet. See the corresponding code in the VLAN driver .

, RX_BIT , VLAN VLAN skb.

+2

Source: https://habr.com/ru/post/1664353/


All Articles