Merge tag 'memblock-v5.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt...
[linux-2.6-microblaze.git] / drivers / net / ethernet / intel / ice / ice_ethtool.c
index 70335f6..a6fff8e 100644 (file)
@@ -658,7 +658,8 @@ static int ice_lbtest_receive_frames(struct ice_rx_ring *rx_ring)
                rx_desc = ICE_RX_DESC(rx_ring, i);
 
                if (!(rx_desc->wb.status_error0 &
-                   cpu_to_le16(ICE_TX_DESC_CMD_EOP | ICE_TX_DESC_CMD_RS)))
+                   (cpu_to_le16(BIT(ICE_RX_FLEX_DESC_STATUS0_DD_S)) |
+                    cpu_to_le16(BIT(ICE_RX_FLEX_DESC_STATUS0_EOF_S)))))
                        continue;
 
                rx_buf = &rx_ring->rx_buf[i];
@@ -1292,7 +1293,7 @@ static int ice_set_priv_flags(struct net_device *netdev, u32 flags)
         * promiscuous mode because it's not supported
         */
        if (test_bit(ICE_FLAG_VF_TRUE_PROMISC_ENA, change_flags) &&
-           ice_is_any_vf_in_promisc(pf)) {
+           ice_is_any_vf_in_unicast_promisc(pf)) {
                dev_err(dev, "Changing vf-true-promisc-support flag while VF(s) are in promiscuous mode not supported\n");
                /* toggle bit back to previous state */
                change_bit(ICE_FLAG_VF_TRUE_PROMISC_ENA, pf->flags);