mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
ionic: remove mac overflow flags
The overflow flags really aren't useful and we don't need lif struct elements to track them. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1d4ddc4a53
commit
4ed642cc65
|
|
@ -1283,14 +1283,11 @@ void ionic_lif_rx_mode(struct ionic_lif *lif)
|
|||
* to see if we can disable NIC PROMISC
|
||||
*/
|
||||
nfilters = le32_to_cpu(lif->identity->eth.max_ucast_filters);
|
||||
|
||||
if ((lif->nucast + lif->nmcast) >= nfilters) {
|
||||
rx_mode |= IONIC_RX_MODE_F_PROMISC;
|
||||
rx_mode |= IONIC_RX_MODE_F_ALLMULTI;
|
||||
lif->uc_overflow = true;
|
||||
lif->mc_overflow = true;
|
||||
} else if (lif->uc_overflow) {
|
||||
lif->uc_overflow = false;
|
||||
lif->mc_overflow = false;
|
||||
} else {
|
||||
if (!(nd_flags & IFF_PROMISC))
|
||||
rx_mode &= ~IONIC_RX_MODE_F_PROMISC;
|
||||
if (!(nd_flags & IFF_ALLMULTI))
|
||||
|
|
|
|||
|
|
@ -189,8 +189,6 @@ struct ionic_lif {
|
|||
u16 rx_mode;
|
||||
u64 hw_features;
|
||||
bool registered;
|
||||
bool mc_overflow;
|
||||
bool uc_overflow;
|
||||
u16 lif_type;
|
||||
unsigned int nmcast;
|
||||
unsigned int nucast;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user