cxgbe(4): Use the rx channel map (instead of the tx channel map) as the
congestion channel map. MFC after: 1 week
This commit is contained in:
parent
bbaa0236fd
commit
34a66678cc
@ -210,6 +210,7 @@ struct port_info {
|
||||
uint8_t mod_type;
|
||||
uint8_t port_id;
|
||||
uint8_t tx_chan;
|
||||
uint8_t rx_chan_map; /* rx MPS channel bitmap */
|
||||
|
||||
/* These need to be int as they are used in sysctl */
|
||||
int ntxq; /* # of tx queues */
|
||||
|
@ -5650,6 +5650,7 @@ int __devinit t4_port_init(struct port_info *p, int mbox, int pf, int vf)
|
||||
|
||||
p->viid = ret;
|
||||
p->tx_chan = j;
|
||||
p->rx_chan_map = get_mps_bg_map(adap, j);
|
||||
p->lport = j;
|
||||
p->rss_size = rss_size;
|
||||
t4_os_set_hw_addr(adap, p->port_id, addr);
|
||||
|
@ -2474,7 +2474,7 @@ tnl_cong(struct port_info *pi)
|
||||
else if (cong_drop == 1)
|
||||
return (0);
|
||||
else
|
||||
return (1 << pi->tx_chan);
|
||||
return (pi->rx_chan_map);
|
||||
}
|
||||
|
||||
static int
|
||||
@ -2581,7 +2581,7 @@ alloc_ofld_rxq(struct port_info *pi, struct sge_ofld_rxq *ofld_rxq,
|
||||
char name[16];
|
||||
|
||||
rc = alloc_iq_fl(pi, &ofld_rxq->iq, &ofld_rxq->fl, intr_idx,
|
||||
1 << pi->tx_chan);
|
||||
pi->rx_chan_map);
|
||||
if (rc != 0)
|
||||
return (rc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user