igb: configure CRC stripping for i211 and i354
Signed-off-by: Intel
This commit is contained in:
parent
4f29810e3c
commit
e2aa75f170
@ -1935,8 +1935,11 @@ eth_igb_rx_init(struct rte_eth_dev *dev)
|
||||
if (dev->data->dev_conf.rxmode.hw_strip_crc) {
|
||||
rctl |= E1000_RCTL_SECRC; /* Strip Ethernet CRC. */
|
||||
|
||||
/* set STRCRC bit in all queues for Powerville/Springville */
|
||||
if (hw->mac.type == e1000_i350 || hw->mac.type == e1000_i210) {
|
||||
/* set STRCRC bit in all queues */
|
||||
if (hw->mac.type == e1000_i350 ||
|
||||
hw->mac.type == e1000_i210 ||
|
||||
hw->mac.type == e1000_i211 ||
|
||||
hw->mac.type == e1000_i354) {
|
||||
for (i = 0; i < dev->data->nb_rx_queues; i++) {
|
||||
rxq = dev->data->rx_queues[i];
|
||||
uint32_t dvmolr = E1000_READ_REG(hw,
|
||||
@ -1948,8 +1951,11 @@ eth_igb_rx_init(struct rte_eth_dev *dev)
|
||||
} else {
|
||||
rctl &= ~E1000_RCTL_SECRC; /* Do not Strip Ethernet CRC. */
|
||||
|
||||
/* clear STRCRC bit in all queues for Powerville/Springville */
|
||||
if (hw->mac.type == e1000_i350 || hw->mac.type == e1000_i210) {
|
||||
/* clear STRCRC bit in all queues */
|
||||
if (hw->mac.type == e1000_i350 ||
|
||||
hw->mac.type == e1000_i210 ||
|
||||
hw->mac.type == e1000_i211 ||
|
||||
hw->mac.type == e1000_i354) {
|
||||
for (i = 0; i < dev->data->nb_rx_queues; i++) {
|
||||
rxq = dev->data->rx_queues[i];
|
||||
uint32_t dvmolr = E1000_READ_REG(hw,
|
||||
|
Loading…
Reference in New Issue
Block a user