* [dpdk-stable] [PATCH v2 02/13] net/dpaa: fix jumbo buffer config [not found] ` <1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com> @ 2018-09-18 13:31 ` Hemant Agrawal 2018-09-18 14:03 ` Thomas Monjalon 2018-09-18 13:31 ` [dpdk-stable] [PATCH v2 04/13] net/dpaa: fix link speed based on MAC type Hemant Agrawal 1 sibling, 1 reply; 4+ messages in thread From: Hemant Agrawal @ 2018-09-18 13:31 UTC (permalink / raw) To: dev, thomas, ferruh.yigit; +Cc: stable Avoid return after the jumbo buffer config in dev config API Fixes: 9658ac3a4ef6 ("net/dpaa: set the correct frame size in device MTU") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/net/dpaa/dpaa_ethdev.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index b9bd557..db166f5 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -195,11 +195,17 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev) if (rx_offloads & DEV_RX_OFFLOAD_JUMBO_FRAME) { if (dev->data->dev_conf.rxmode.max_rx_pkt_len <= DPAA_MAX_RX_PKT_LEN) { + DPAA_PMD_DEBUG("enabling jumbo"); fman_if_set_maxfrm(dpaa_intf->fif, dev->data->dev_conf.rxmode.max_rx_pkt_len); - return 0; + dev->data->mtu = + dev->data->dev_conf.rxmode.max_rx_pkt_len - + ETHER_HDR_LEN - ETHER_CRC_LEN - VLAN_TAG_SIZE; } else { - return -1; + DPAA_PMD_ERR("enabling jumbo err conf max len=%d " + "supported is %d", + dev->data->dev_conf.rxmode.max_rx_pkt_len, + DPAA_MAX_RX_PKT_LEN); } } return 0; -- 2.7.4 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-stable] [PATCH v2 02/13] net/dpaa: fix jumbo buffer config 2018-09-18 13:31 ` [dpdk-stable] [PATCH v2 02/13] net/dpaa: fix jumbo buffer config Hemant Agrawal @ 2018-09-18 14:03 ` Thomas Monjalon 2018-09-18 16:22 ` [dpdk-stable] [dpdk-dev] " Hemant 0 siblings, 1 reply; 4+ messages in thread From: Thomas Monjalon @ 2018-09-18 14:03 UTC (permalink / raw) To: Hemant Agrawal; +Cc: dev, ferruh.yigit, stable 18/09/2018 15:31, Hemant Agrawal: > Avoid return after the jumbo buffer config in dev config API > > Fixes: 9658ac3a4ef6 ("net/dpaa: set the correct frame size in device MTU") > Cc: stable@dpdk.org > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Thanks for adding some comments in this series. About this fix, would it be easier to understand if explaining what is the bug first? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-stable] [dpdk-dev] [PATCH v2 02/13] net/dpaa: fix jumbo buffer config 2018-09-18 14:03 ` Thomas Monjalon @ 2018-09-18 16:22 ` Hemant 0 siblings, 0 replies; 4+ messages in thread From: Hemant @ 2018-09-18 16:22 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev, ferruh.yigit, stable On 9/18/2018 7:33 PM, Thomas Monjalon wrote: > 18/09/2018 15:31, Hemant Agrawal: >> Avoid return after the jumbo buffer config in dev config API >> >> Fixes: 9658ac3a4ef6 ("net/dpaa: set the correct frame size in device MTU") >> Cc: stable@dpdk.org >> >> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > Thanks for adding some comments in this series. > > About this fix, would it be easier to understand if explaining > what is the bug first? > > yes. I can be more specific here. 1. the dev->data->mtu was not getting updated earlier for the jumbo buffer config. 2. we don't expect to return error, if this config fails. A debug err log is ok. DPAA1 - supports jumbo by default, enable/disable may give errors. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-stable] [PATCH v2 04/13] net/dpaa: fix link speed based on MAC type [not found] ` <1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com> 2018-09-18 13:31 ` [dpdk-stable] [PATCH v2 02/13] net/dpaa: fix jumbo buffer config Hemant Agrawal @ 2018-09-18 13:31 ` Hemant Agrawal 1 sibling, 0 replies; 4+ messages in thread From: Hemant Agrawal @ 2018-09-18 13:31 UTC (permalink / raw) To: dev, thomas, ferruh.yigit; +Cc: Sachin Saxena, shreyansh.jain, stable From: Sachin Saxena <sachin.saxena@nxp.com> The link speed shall be on the basis of mac type. Fixes: 799db4568c76 ("net/dpaa: support device info and speed capability") Cc: shreyansh.jain@nxp.com Cc: stable@dpdk.org Signed-off-by: Sachin Saxena <sachin.saxena@nxp.com> --- drivers/net/dpaa/dpaa_ethdev.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 9ea8510..fa63afc 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -337,8 +337,15 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev, dev_info->max_vfs = 0; dev_info->max_vmdq_pools = ETH_16_POOLS; dev_info->flow_type_rss_offloads = DPAA_RSS_OFFLOAD_ALL; - dev_info->speed_capa = (ETH_LINK_SPEED_1G | - ETH_LINK_SPEED_10G); + + if (dpaa_intf->fif->mac_type == fman_mac_1g) + dev_info->speed_capa = ETH_LINK_SPEED_1G; + else if (dpaa_intf->fif->mac_type == fman_mac_10g) + dev_info->speed_capa = (ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G); + else + DPAA_PMD_ERR("invalid link_speed: %s, %d", + dpaa_intf->name, dpaa_intf->fif->mac_type); + dev_info->rx_offload_capa = dev_rx_offloads_sup | dev_rx_offloads_nodis; dev_info->tx_offload_capa = dev_tx_offloads_sup | -- 2.7.4 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-09-18 16:22 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <1535539660-20228-2-git-send-email-hemant.agrawal@nxp.com> [not found] ` <1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com> 2018-09-18 13:31 ` [dpdk-stable] [PATCH v2 02/13] net/dpaa: fix jumbo buffer config Hemant Agrawal 2018-09-18 14:03 ` Thomas Monjalon 2018-09-18 16:22 ` [dpdk-stable] [dpdk-dev] " Hemant 2018-09-18 13:31 ` [dpdk-stable] [PATCH v2 04/13] net/dpaa: fix link speed based on MAC type Hemant Agrawal
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).