af_packet: show host interface offload flags 71/42871/2
authorMohsin Kazmi <[email protected]>
Tue, 20 May 2025 15:29:50 +0000 (15:29 +0000)
committerDave Wallace <[email protected]>
Thu, 22 May 2025 15:37:52 +0000 (15:37 +0000)
commitf703b6599c37d753a96bdbc57799d321f4ef3989
tree6d96878847ea6299d7691fff1ec6a71480f4263e
parent1dfb092464152cfbf404adc3972296cd0d03de25
af_packet: show host interface offload flags

Type: improvement

This patch implements support to show host interface offload
flags at the time of creation. It also shows host interface
offload flags at the time of calling given function through
'show hardware'.

Before:
  Host Interface Offload:
    creation time:
     rx checksum
     tx checksum
     tcp segmentation offload
     generic segemanttaion offload
    now:
     rx checksum
     tx checksum
     tcp segmentation offload
     generic segemanttaion offload

After changing the offloads on the veth using ethtool command ('ethtool -K veth1 rx off tx off'):
  Host Interface Offload:
    creation time:
     rx checksum
     tx checksum
     tcp segmentation offload
     generic segemanttaion offload
    now:
     generic segemanttaion offload

Signed-off-by: Mohsin Kazmi <[email protected]>
Change-Id: Ia38d35e7a70206781afad42f0333e47bac8fedc9
(cherry picked from commit ca04957060a81e733c537a1c7858f7ae335bcd3e)
src/plugins/af_packet/af_packet.c
src/plugins/af_packet/af_packet.h
src/plugins/af_packet/device.c