]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ionic: remove mac overflow flags
authorShannon Nelson <snelson@pensando.io>
Sat, 9 Oct 2021 18:45:17 +0000 (11:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Oct 2021 09:42:47 +0000 (10:42 +0100)
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>
drivers/net/ethernet/pensando/ionic/ionic_lif.c
drivers/net/ethernet/pensando/ionic/ionic_lif.h

index 968403a014775cf09e2eeeebb568db2c9669bb40..4a080612142a5e61184aed5068abd886d82a2745 100644 (file)
@@ -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))
index 41f28154745f3f45adc325e055e4ee0bf2b30fd4..541aa54e4ffd44e68ee89ac613ec6d3396857719 100644 (file)
@@ -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;