diff options
author | Jan Sokolowski <jan.sokolowski@intel.com> | 2023-05-11 08:53:19 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-12 09:27:44 +0100 |
commit | 9113302bb43cf7a6d5a414d49b29478e57451c86 (patch) | |
tree | 11ed3b4883dc23cfbf9caaa4392fe3b9057f55c7 /scripts/gdb/linux/interrupts.py | |
parent | 47af4291711f21e1282dbc1002baebba30595aa2 (diff) |
ice: Fix undersized tx_flags variable
As not all ICE_TX_FLAGS_* fit in current 16-bit limited
tx_flags field that was introduced in the Fixes commit,
VLAN-related information would be discarded completely.
As such, creating a vlan and trying to run ping through
would result in no traffic passing.
Fix that by refactoring tx_flags variable into flags only and
a separate variable that holds VLAN ID. As there is some space left,
type variable can fit between those two. Pahole reports no size
change to ice_tx_buf struct.
Fixes: aa1d3faf71a6 ("ice: Robustify cleaning/completing XDP Tx buffers")
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions