af_packet: fix the broken functionality upon admin down 05/38405/3
authorMohsin Kazmi <sykazmi@cisco.com>
Tue, 7 Mar 2023 11:07:56 +0000 (11:07 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Fri, 10 Mar 2023 15:54:22 +0000 (15:54 +0000)
commit7b0d48fbb3ceebcafb18177fba02ab1a9ad4c24e
tree470661b8958c8eb70a452d93ea307b53c18eb642
parent66c675e1a514a85ac56faf686fb96b63505c994f
af_packet: fix the broken functionality upon admin down

Type: fix

In vpp, file descriptor handler closes the fd upon error
if there is no error handling function is registered.
This patch fixes the issue for af_packet interface by
registering the error handling function.

Errors will also be gracefully logged.

Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I260d780ac54ffd0199dcd6ca5b95e5afe957e968
src/plugins/af_packet/af_packet.c
src/plugins/af_packet/device.c