From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yi Zhang Subject: net/ixgbe:fix incorrect max packet length in ixgbevf Date: Tue, 6 Dec 2016 07:22:56 +0800 Message-ID: <20161205232256.6035-1-zhang.yi75@zte.com.cn> Cc: dev@dpdk.org, Yi Zhang To: maintainer@some.org Return-path: Received: from out1.zte.com.cn (out1.zte.com.cn [202.103.147.172]) by dpdk.org (Postfix) with ESMTP id A47052BCD for ; Mon, 5 Dec 2016 12:08:58 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Current ixgbevf driver get max_rx_pktlen = 15872, but in fact PF supports 15872-byte jumbo frame and VF only supports 9728-byte jumbo frame. If VF is running DPDK driver and set frame_size > 9728 ,PF running kernel ixgbe driver will report an error and set VF failed. This patch fixs DPDK ixgbevf driver to get correct jumbo frame size of VF. Signed-off-by: Yi Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 drivers/net/ixgbe/ixgbe_ethdev.c diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c old mode 100644 new mode 100755 index edc9b22..573252c --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -3168,7 +3168,7 @@ ixgbevf_dev_info_get(struct rte_eth_dev *dev, dev_info->max_rx_queues = (uint16_t)hw->mac.max_rx_queues; dev_info->max_tx_queues = (uint16_t)hw->mac.max_tx_queues; dev_info->min_rx_bufsize = 1024; /* cf BSIZEPACKET in SRRCTL reg */ - dev_info->max_rx_pktlen = 15872; /* includes CRC, cf MAXFRS reg */ + dev_info->max_rx_pktlen = 9728; /* includes CRC, cf MAXFRS reg */ dev_info->max_mac_addrs = hw->mac.num_rar_entries; dev_info->max_hash_mac_addrs = IXGBE_VMDQ_NUM_UC_MAC; dev_info->max_vfs = dev->pci_dev->max_vfs; -- 2.9.3