diff options
| author | Jianguo Wu <wujianguo@chinatelecom.cn> | 2022-01-21 17:15:31 +0800 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2022-01-24 11:58:46 +0000 | 
| commit | 1d10f8a1f40b965d449e8f2d5ed7b96a7c138b77 (patch) | |
| tree | 7865322f57c133bb4f43a1ec7942b5bea1339ad1 /scripts/patch-kernel | |
| parent | aa6034678e873db8bd5c5a4b73f8b88c469374d6 (diff) | |
net-procfs: show net devices bound packet types
After commit:7866a621043f ("dev: add per net_device packet type chains"),
we can not get packet types that are bound to a specified net device by
/proc/net/ptype, this patch fix the regression.
Run "tcpdump -i ens192 udp -nns0" Before and after apply this patch:
Before:
  [root@localhost ~]# cat /proc/net/ptype
  Type Device      Function
  0800          ip_rcv
  0806          arp_rcv
  86dd          ipv6_rcv
After:
  [root@localhost ~]# cat /proc/net/ptype
  Type Device      Function
  ALL  ens192   tpacket_rcv
  0800          ip_rcv
  0806          arp_rcv
  86dd          ipv6_rcv
v1 -> v2:
  - fix the regression rather than adding new /proc API as
    suggested by Stephen Hemminger.
Fixes: 7866a621043f ("dev: add per net_device packet type chains")
Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
