Skip to content

Commit

Permalink
net/sfc: set max Rx packet length for representors
Browse files Browse the repository at this point in the history
[ upstream commit a51985667d50aadd58d1fbcefb084b9791df4992 ]

Maximum packet length must be set to configure representor devices.

Fixes: a62ec90 ("net/sfc: add port representors infrastructure")

Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@arknetworks.am>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
  • Loading branch information
okt-galaktionov authored and kevintraynor committed Oct 31, 2023
1 parent 41073f2 commit c0edca2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/sfc/sfc_repr.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ sfc_repr_dev_infos_get(struct rte_eth_dev *dev,

dev_info->device = dev->device;

dev_info->max_rx_pktlen = EFX_MAC_PDU_MAX;
dev_info->max_rx_queues = SFC_REPR_RXQ_MAX;
dev_info->max_tx_queues = SFC_REPR_TXQ_MAX;
dev_info->default_rxconf.rx_drop_en = 1;
Expand Down

0 comments on commit c0edca2

Please sign in to comment.