af_packet: show host interface offload flags 87/42887/4
authorMohsin Kazmi <[email protected]>
Tue, 20 May 2025 15:29:50 +0000 (15:29 +0000)
committerFlorin Coras <[email protected]>
Wed, 21 May 2025 18:06:05 +0000 (18:06 +0000)
commitca04957060a81e733c537a1c7858f7ae335bcd3e
tree8bc633de1db6cea41702f9da78543d35190eaf1b
parent85c2de94faf259fc2ef97c553b2f6b861a42913c
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
src/plugins/af_packet/af_packet.c
src/plugins/af_packet/af_packet.h
src/plugins/af_packet/device.c