devices: default mode eth in the api 49/34249/4
authorNathan Skrzypczak <[email protected]>
Tue, 26 Oct 2021 14:11:38 +0000 (16:11 +0200)
committerBeno�t Ganne <[email protected]>
Fri, 29 Oct 2021 10:15:42 +0000 (10:15 +0000)
commitb225b0a2af66b0a3a007d50877638f7489acbaf3
tree85cc533201a42214a6c5cc5dd1d52478524d231c
parent8f3415dee376d53371b92293d8d10833ea53ca77
devices: default mode eth in the api

Type: fix

https://gerrit.fd.io/r/c/vpp/+/34027 added support
for l3 mode, but as the eth_mode constant was set
to 1 we did default to l3 mode in the api.

This reverts to the original logic.

Change-Id: If8b90b300d3868de5233dfa1f33ec975853cba11
Signed-off-by: Nathan Skrzypczak <[email protected]>
src/vnet/devices/af_packet/af_packet.c
src/vnet/devices/af_packet/af_packet_api.c