af_packet: GetFanoutMode: Fix case statement (missing breaks).

Without this, you can't actually set the fanout mode to anything but HASH.
This commit is contained in:
Vlad Grigorescu 2020-11-01 00:21:14 -05:00 committed by Tim Wojtulewicz
parent 62356c38dd
commit e3c5865684

View file

@ -183,10 +183,13 @@ inline uint32_t AF_PacketSource::GetFanoutMode(bool defrag)
switch ( BifConst::AF_Packet::fanout_mode->AsEnum() ) { switch ( BifConst::AF_Packet::fanout_mode->AsEnum() ) {
case BifEnum::AF_Packet::FANOUT_CPU: fanout_mode = PACKET_FANOUT_CPU; case BifEnum::AF_Packet::FANOUT_CPU: fanout_mode = PACKET_FANOUT_CPU;
break;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
case BifEnum::AF_Packet::FANOUT_QM: fanout_mode = PACKET_FANOUT_QM; case BifEnum::AF_Packet::FANOUT_QM: fanout_mode = PACKET_FANOUT_QM;
break;
#endif #endif
default: fanout_mode = PACKET_FANOUT_HASH; default: fanout_mode = PACKET_FANOUT_HASH;
break;
} }
if ( defrag ) if ( defrag )