net: Use NULL to signal lack of promisc/multicast
[akaros.git] / kern / drivers / net / bnx2x / bnx2x_vfpf.c
index 9b1f0cd..f982518 100644 (file)
@@ -17,7 +17,7 @@
  *            Ariel Elior <ariel.elior@qlogic.com>
  */
 
-#include "akaros_compat.h"
+#include <linux_compat.h>
 
 #include "bnx2x.h"
 #include "bnx2x_cmn.h"
@@ -109,7 +109,7 @@ static void bnx2x_dp_tlv_list(struct bnx2x *bp, void *tlvs_list)
 
                /* break condition for this loop */
                if (i > MAX_TLVS_IN_LIST) {
-                       WARN(true, "corrupt tlvs");
+                       warn(true, "corrupt tlvs");
                        return;
                }
        }
@@ -146,7 +146,7 @@ static int bnx2x_send_msg2pf(struct bnx2x *bp, uint8_t *done,
 
        if (*done) {
                BNX2X_ERR("done was non zero before message to pf was sent\n");
-               WARN_ON(true);
+               warn_on(true);
                return -EINVAL;
        }
 
@@ -624,11 +624,11 @@ int bnx2x_vfpf_setup_q(struct bnx2x *bp, struct bnx2x_fastpath *fp,
        req->rxq.vf_sb = fp_idx;
        req->rxq.sb_index = HC_INDEX_ETH_RX_CQ_CONS;
        req->rxq.hc_rate = bp->rx_ticks ? 1000000/bp->rx_ticks : 0;
-       req->rxq.mtu = bp->dev->mtu;
+       req->rxq.mtu = bp->dev->maxmtu;
        req->rxq.buf_sz = fp->rx_buf_size;
        req->rxq.sge_buf_sz = BCM_PAGE_SIZE * PAGES_PER_SGE;
        req->rxq.tpa_agg_sz = tpa_agg_size;
-       req->rxq.max_sge_pkt = SGE_PAGE_ALIGN(bp->dev->mtu) >> SGE_PAGE_SHIFT;
+       req->rxq.max_sge_pkt = SGE_PAGE_ALIGN(bp->dev->maxmtu) >> SGE_PAGE_SHIFT;
        req->rxq.max_sge_pkt = ((req->rxq.max_sge_pkt + PAGES_PER_SGE - 1) &
                          (~(PAGES_PER_SGE-1))) >> PAGES_PER_SGE_SHIFT;
        req->rxq.flags = flags;
@@ -1573,7 +1573,7 @@ static int bnx2x_vf_mbx_macvlan_list(struct bnx2x *bp,
              sizeof(struct bnx2x_vf_mac_vlan_filter) +
              sizeof(struct bnx2x_vf_mac_vlan_filters);
 
-       fl = kzmalloc(fsz, KMALLOC_WAIT);
+       fl = kzmalloc(fsz, MEM_WAIT);
        if (!fl)
                return -ENOMEM;