Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
@@ -1872,8 +1872,16 @@ static void bnx2x_get_ringparam(struct net_device *dev,
|
||||
|
||||
ering->rx_max_pending = MAX_RX_AVAIL;
|
||||
|
||||
/* If size isn't already set, we give an estimation of the number
|
||||
* of buffers we'll have. We're neglecting some possible conditions
|
||||
* [we couldn't know for certain at this point if number of queues
|
||||
* might shrink] but the number would be correct for the likely
|
||||
* scenario.
|
||||
*/
|
||||
if (bp->rx_ring_size)
|
||||
ering->rx_pending = bp->rx_ring_size;
|
||||
else if (BNX2X_NUM_RX_QUEUES(bp))
|
||||
ering->rx_pending = MAX_RX_AVAIL / BNX2X_NUM_RX_QUEUES(bp);
|
||||
else
|
||||
ering->rx_pending = MAX_RX_AVAIL;
|
||||
|
||||
|
@@ -10138,7 +10138,7 @@ static void __bnx2x_add_udp_port(struct bnx2x *bp, u16 port,
|
||||
{
|
||||
struct bnx2x_udp_tunnel *udp_port = &bp->udp_tunnel_ports[type];
|
||||
|
||||
if (!netif_running(bp->dev) || !IS_PF(bp))
|
||||
if (!netif_running(bp->dev) || !IS_PF(bp) || CHIP_IS_E1x(bp))
|
||||
return;
|
||||
|
||||
if (udp_port->count && udp_port->dst_port == port) {
|
||||
@@ -10163,7 +10163,7 @@ static void __bnx2x_del_udp_port(struct bnx2x *bp, u16 port,
|
||||
{
|
||||
struct bnx2x_udp_tunnel *udp_port = &bp->udp_tunnel_ports[type];
|
||||
|
||||
if (!IS_PF(bp))
|
||||
if (!IS_PF(bp) || CHIP_IS_E1x(bp))
|
||||
return;
|
||||
|
||||
if (!udp_port->count || udp_port->dst_port != port) {
|
||||
@@ -13508,6 +13508,7 @@ static int bnx2x_init_firmware(struct bnx2x *bp)
|
||||
|
||||
/* Initialize the pointers to the init arrays */
|
||||
/* Blob */
|
||||
rc = -ENOMEM;
|
||||
BNX2X_ALLOC_AND_SET(init_data, request_firmware_exit, be32_to_cpu_n);
|
||||
|
||||
/* Opcodes */
|
||||
|
@@ -4116,7 +4116,7 @@ static int bnxt_hwrm_stat_ctx_alloc(struct bnxt *bp)
|
||||
bp->grp_info[i].fw_stats_ctx = cpr->hw_stats_ctx_id;
|
||||
}
|
||||
mutex_unlock(&bp->hwrm_cmd_lock);
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int bnxt_hwrm_func_qcfg(struct bnxt *bp)
|
||||
|
Reference in New Issue
Block a user