Commit 4ed642cc authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller
Browse files

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: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1d4ddc4a
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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))
+0 −2
Original line number Diff line number Diff line
@@ -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;