Doc: add known issue for restricted vdev ethdev ops in secondary process
PATCH 1/1 Doc: add known issue for restricted vdev ethdev ops in secondary process
doc/guides/rel_notes/known_issues.rst +18 -0
@@ -759,3 +759,21 @@ Netvsc driver and application restart **Driver/Module**: ``uio_hv_generic`` module. + + +Restricted vdev ethdev operations supported in secondary process +---------------------------------------------------------------- +**Description** + In current virtual device sharing model, Ethernet device data structure will be + shared between primary and secondary process. Only those Ethernet device operations + which based on it are workable in secondary process. + +**Implication** + Some Ethernet device operations like device start/stop will be failed on virtual + device in secondary process. + +**Affected Environment/Platform**: + ALL. + +**Driver/Module**: + Virtual Device Poll Mode Driver (PMD).
Signature · 1 line
2.14.1
Question about jumbo frame support on ixgbe
Hi,
I have a very basic question about jumbo frame support for ixgbe.
I understand that some drivers support jumbo frame and if it receive jumbo packet (greater than 1500 byte), it creates mbuf chains and pass it to DPDK application through e.g. rte_eth_rx_burst.
However it looks that ixgbe driver does not support jumbo frame.
Q1. Is my understanding above correct?
Q2. If A1 equals YES, then are there any future plan to support jumbo frame on ixgbe?
BR,
Hideyuki Yamashita
NTT TechnoCross
Re: Question about jumbo frame support on ixgbe
Quoted 11 lines · On Wed, 31 Oct 2018 17:22:02 +0900 Hideyuki Yamashita…
Hi,
I have a very basic question about jumbo frame support for ixgbe.
I understand that some drivers support jumbo frame and if it receive jumbo packet (greater than 1500 byte), it creates mbuf chains and pass it to DPDK application through e.g.
rte_eth_rx_burst.However it looks that ixgbe driver does not support jumbo frame.
Quoted 8 lines
Q1. Is my understanding above correct?
Q2. If A1 equals YES, then are there any future plan to support jumbo frame on ixgbe?BR,
Hideyuki Yamashita
NTT TechnoCross
I don't work for Intel, and haven't tried jumbo frames on ixgbe. The hardware does support jumbo frames.
You might be confusing the overlapping receive offload values.
The setting for using jumbo frames is in current DPDK is shown as available in device as:
rx_offload_capa & DEV_RX_OFFLOAD_JUMBO_FRAME
In order to use it, this bit must be setn in rx_conf that is passed to rte_eth_rx_queue_setup
The feature bit that creates multiple mbuf's if necessary on receive is:
rx_offload_capa & DEV_RX_OFFLOAD_SCATTER
Likewise to enable it, this must be set in rte_eth_rx_queue_setup rx_conf.
Re: Question about jumbo frame support on ixgbe
Quoted 36 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Stephen Hemminger
Sent: Wednesday, October 31, 2018 11:49 PM
To: Hideyuki Yamashita <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] Question about jumbo frame support on ixgbeQuoted 10 lines · On Wed, 31 Oct 2018 17:22:02 +0900 Hideyuki Yamashita…
Hi,
I have a very basic question about jumbo frame support for ixgbe.
I understand that some drivers support jumbo frame and if it receive jumbo packet (greater than 1500 byte), it creates mbuf chains and pass it to DPDK application through e.g.
rte_eth_rx_burst.However it looks that ixgbe driver does not support jumbo frame.
Quoted 8 lines
Q1. Is my understanding above correct?
Q2. If A1 equals YES, then are there any future plan to support jumbo frame on ixgbe?BR,
Hideyuki Yamashita
NTT TechnoCrossI don't work for Intel, and haven't tried jumbo frames on ixgbe. The hardware does support jumbo frames.
You might be confusing the overlapping receive offload values.
Quoted 6 lines
The setting for using jumbo frames is in current DPDK is shown as available in device as:
rx_offload_capa&DEV_RX_OFFLOAD_JUMBO_FRAMEIn order to
use it, this bit must be setn inrx_confthat is passed torte_eth_rx_queue_setup
Yes,
dev_conf.rxmode.offloads bits of DEV_RX_OFFLOAD_JUMBO_FRAME should be set to 1 when start port in API rte_eth_dev_start(). IF you are using testpmd APP, you should set struct rte_eth_rxmode rx_mode offloads bits of DEV_RX_OFFLOAD_JUMBO_FRAME.
but I think only set this bit of DEV_RX_OFFLOAD_JUMBO_FRAME is not sufficient for enable this jumbo frame feature,
Because in PMD code, this flag do not set bit of IXGBE_HLREG0_JUMBOEN in register IXGBE_HLREG0, I think this is something We need update.
Quoted 6 lines
The feature bit that creates multiple mbuf's if necessary on receive is:
rx_offload_capa&DEV_RX_OFFLOAD_SCATTERLikewise to enable it,
this must be set inrte_eth_rx_queue_setuprx_conf.
Yes, this step can chose scatter rx function for PMD, but not MUST, details of discussion for this is in other mail.
https://mails.dpdk.org/archives/dev/2018-November/117771.html
Re: Question about jumbo frame support on ixgbe
In reply to Stephen HemmingerHi, Stephen Hemminger
Quoted 51 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Thursday, November 1, 2018 11:27 AM
To: 'Stephen Hemminger' <[email protected]>; Hideyuki Yamashita <[email protected]>
Cc: [email protected]
Subject: RE: [dpdk-dev] Question about jumbo frame support on ixgbeQuoted 2 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of StephenHemminger
Quoted 27 lines
Sent: Wednesday, October 31, 2018 11:49 PM
To: Hideyuki Yamashita <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] Question about jumbo frame support on ixgbeQuoted 10 lines · On Wed, 31 Oct 2018 17:22:02 +0900 Hideyuki Yamashita…
Hi,
I have a very basic question about jumbo frame support for ixgbe.
I understand that some drivers support jumbo frame and if it receive jumbo packet (greater than 1500 byte), it creates mbuf chains and pass it to DPDK application through e.g.
rte_eth_rx_burst.However it looks that ixgbe driver does not support jumbo frame.
Quoted 8 lines
Q1. Is my understanding above correct?
Q2. If A1 equals YES, then are there any future plan to support jumbo frame on ixgbe?BR,
Hideyuki Yamashita
NTT TechnoCrossQuoted 7 lines
I don't work for Intel, and haven't tried jumbo frames on ixgbe. The hardware does support jumbo frames.
You might be confusing the overlapping receive offload values.The setting for using jumbo frames is in current DPDK is shown as available in device as:
rx_offload_capa&DEV_RX_OFFLOAD_JUMBO_FRAMEIn order touse it, this
Quoted 2 lines
bit must be setn in
rx_confthat is passed torte_eth_rx_queue_setup
Quoted 9 lines
Yes,
dev_conf.rxmode.offloads bits ofDEV_RX_OFFLOAD_JUMBO_FRAMEshould be set to 1 when start port in APIrte_eth_dev_start(). IF you are using testpmd APP, you should set structrte_eth_rxmoderx_modeoffloads bits ofDEV_RX_OFFLOAD_JUMBO_FRAME.
but I think only set this bit ofDEV_RX_OFFLOAD_JUMBO_FRAMEis not
sufficient for enable this jumbo frame feature, Because in PMD code, this flag do not set bit ofIXGBE_HLREG0_JUMBOENin registerIXGBE_HLREG0, I think this is something We need update.
Correct some content above, set this bit of DEV_RX_OFFLOAD_JUMBO_FRAME can
result in set bit of IXGBE_HLREG0_JUMBOEN in register IXGBE_HLREG0, but it still need some check of packet size boundary for code safe!
Quoted 4 lines
Quoted 4 lines
The feature bit that creates multiple mbuf's if necessary on receive is:
rx_offload_capa&DEV_RX_OFFLOAD_SCATTERLikewise to enable it,
Quoted 8 lines
this
Quoted 3 lines
must be set in
rte_eth_rx_queue_setuprx_conf.Yes, this step can chose scatter rx function for PMD, but not MUST, details of discussion for this is in other mail.
https://mails.dpdk.org/archives/dev/2018-November/117771.html
After a double check of code, I am sure DEV_RX_OFFLOAD_SCATTER is not a must choice, it is depend on the relationship of max_rx_pkt_len and mbuf size, for example you set max_rx_pkt_len to 9.5k and mbuf size to 2048, of course we need to using scatter receiving mode.
Quoted 3 lines
Re: Question about jumbo frame support on ixgbe
In reply to Hideyuki YamashitaAdd Stephen Hemminger <[email protected]> for discussion.
Quoted 64 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Thursday, November 1, 2018 11:10 AM
To: 'Hideyuki Yamashita' <[email protected]>; [email protected]
Subject: RE: [dpdk-dev] Question about jumbo frame support on ixgbeHi, Hideyuki Yamashita
Quoted 15 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Hideyuki Yamashita
Sent: Wednesday, October 31, 2018 4:22 PM
To: [email protected]
Subject: [dpdk-dev] Question about jumbo frame support on ixgbeHi,
I have a very basic question about jumbo frame support for ixgbe.
I understand that some drivers support jumbo frame and if it receive jumbo packet (greater than 1500 byte), it creates mbuf chains and pass it to DPDK application through e.g.
rte_eth_rx_burst.Quoted 5 lines
However it looks that ixgbe driver does not support jumbo frame.
Q1. Is my understanding above correct?
Q2. If A1 equals YES, then are there any future plan to support jumbo frame on ixgbe?Your understanding above correct, but 82599 and x550 has support jumbo frame receive by now!
In order to use this feature on ixgbe, you need do the following steps:1. you must set dev_conf.rxmode.
max_rx_pkt_lento a big number, eg. 9500, when doing port start, for example when start port in APIrte_eth_dev_start().ixgbe_dev_rx_init()will chose a scatter receive function if themax_rx_pkt_lenis larger than the mbuf size, you do not need to setDEV_RX_OFFLOAD_SCATTERbit in dev_conf.rxmode.offloads, this is the work of PMD driver when it detect jumbo frame is needed to be supported.2. set dev_conf.txmode.offloads bit of
DEV_TX_OFFLOAD_MULTI_SEGSto 1 when doingrte_eth_tx_queue_setup()or , this is very important!! If you not do this, you may only receive JUMBO frame but not forward out. Because as you say, the receive packets maybe has a mbufchains(depending on the size relationship of mbuf size and the max_rx_pkt_len). But in ixgbe PMD for setting tx function, it is confusing inixgbe_set_tx_function(), you need to take care of it, it is based on queue offloads bit!3. enable it using CLI "port config mtu <
port_id> <value>" if you are using testpmd or using APIrte_eth_dev_set_mtu()for your own APP. The mtu number is just what you need to update for a large number.And all my discussion is based on pf port, if you are using vf, we can have a further discussion.
Please feel free to contact me if necessary.Quoted 4 lines
BR,
Hideyuki Yamashita
NTT TechnoCross
Re: Question about jumbo frame support on ixgbe
In reply to Hideyuki YamashitaHi, Hideyuki Yamashita
Quoted 14 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Hideyuki Yamashita
Sent: Wednesday, October 31, 2018 4:22 PM
To: [email protected]
Subject: [dpdk-dev] Question about jumbo frame support on ixgbeHi,
I have a very basic question about jumbo frame support for ixgbe.
I understand that some drivers support jumbo frame and if it receive jumbo packet (greater than 1500 byte), it creates mbuf chains and pass it to DPDK application through e.g.
rte_eth_rx_burst.
Quoted 5 lines
However it looks that ixgbe driver does not support jumbo frame.
Q1. Is my understanding above correct?
Q2. If A1 equals YES, then are there any future plan to support jumbo frame on ixgbe?
Your understanding above correct, but 82599 and x550 has support jumbo frame receive by now! In order to use this feature on ixgbe, you need do the following steps:
1. you must set dev_conf.rxmode. max_rx_pkt_len to a big number, eg. 9500, when doing port start, for example when start port in API rte_eth_dev_start(). ixgbe_dev_rx_init() will chose a scatter receive function if the max_rx_pkt_len is larger than the mbuf size, you do not need to set DEV_RX_OFFLOAD_SCATTER bit in dev_conf.rxmode.offloads, this is the work of PMD driver when it detect jumbo frame is needed to be supported.
2. set dev_conf.txmode.offloads bit of DEV_TX_OFFLOAD_MULTI_SEGS to 1 when doing rte_eth_tx_queue_setup() or , this is very important!! If you not do this, you may only receive JUMBO frame but not forward out. Because as you say,
the receive packets maybe has a mbuf chains(depending on the size relationship of mbuf size and the max_rx_pkt_len).
But in ixgbe PMD for setting tx function, it is confusing in ixgbe_set_tx_function(), you need to take care of it, it is based on queue offloads bit!
3. enable it using CLI "port config mtu <port_id> <value>" if you are using testpmd or using API rte_eth_dev_set_mtu() for your own APP. The mtu number is just what you need to update for a large number.
And all my discussion is based on pf port, if you are using vf, we can have a further discussion. Please feel free to contact me if necessary.
Quoted 4 lines
BR,
Hideyuki Yamashita
NTT TechnoCross
Re: Question about jumbo frame support on ixgbe
Hi
Thanks for your answering to my question.
Please see inline.
Quoted 23 lines
Hi, Hideyuki Yamashita
Quoted 14 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Hideyuki Yamashita
Sent: Wednesday, October 31, 2018 4:22 PM
To: [email protected]
Subject: [dpdk-dev] Question about jumbo frame support on ixgbeHi,
I have a very basic question about jumbo frame support for ixgbe.
I understand that some drivers support jumbo frame and if it receive jumbo packet (greater than 1500 byte), it creates mbuf chains and pass it to DPDK application through e.g.
rte_eth_rx_burst.Quoted 5 lines
However it looks that ixgbe driver does not support jumbo frame.
Q1. Is my understanding above correct?
Q2. If A1 equals YES, then are there any future plan to support jumbo frame on ixgbe?
Quoted 6 lines
Your understanding above correct, but 82599 and x550 has support jumbo frame receive by now! In order to use this feature on ixgbe, you need do the following steps:
1. you must set dev_conf.rxmode.
max_rx_pkt_lento a big number, eg. 9500, when doing port start, for example when start port in APIrte_eth_dev_start().ixgbe_dev_rx_init()will chose a scatter receive function if themax_rx_pkt_lenis larger than the mbuf size, you do not need to setDEV_RX_OFFLOAD_SCATTERbit in dev_conf.rxmode.offloads, this is the work of PMD driver when it detect jumbo frame is needed to be supported.
Thanks for your info.
Quoted 4 lines
2. set dev_conf.txmode.offloads bit of
DEV_TX_OFFLOAD_MULTI_SEGSto 1 when doingrte_eth_tx_queue_setup()or , this is very important!! If you not do this, you may only receive JUMBO frame but not forward out. Because as you say,
the receive packets maybe has a mbufchains(depending on the size relationship of mbuf size and the max_rx_pkt_len).
But in ixgbe PMD for setting tx function, it is confusing inixgbe_set_tx_function(), you need to take care of it, it is based on queue offloads bit!
What will happen if DEV_TX_OFFLOAD_MULTI_SEGS is set to 1. Packets are sent fragmented or re-built as a Jumbo frame and sent to network?
(My guess is former(packet will be sent fragmented though))
Quoted 2 lines
3. enable it using CLI "port config mtu <
port_id> <value>" if you are using testpmd or using APIrte_eth_dev_set_mtu()for your own APP. The mtu number is just what you need to update for a large number.
I want to know the relationship between 1,2 and 3.
Do I have to do all 3 steps to send/receive jumbo frame?
Or, when I relalize jumbo frame support programatically execute 1 and 2, if I do not modify program and just change setting via CLI then execute 3?
Thanks and BR,
Hideyuki Yamashita
NTT TechnoCross
Quoted 8 lines
And all my discussion is based on pf port, if you are using vf, we can have a further discussion. Please feel free to contact me if necessary.
Quoted 4 lines
BR,
Hideyuki Yamashita
NTT TechnoCross
Re: Question about jumbo frame support on ixgbe
Hi,Hideyuki Yamashita
Quoted 54 lines
-----Original Message-----
From: Hideyuki Yamashita [mailto:[email protected]]
Sent: Friday, November 2, 2018 9:38 AM
To: Zhao1, Wei <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] Question about jumbo frame support on ixgbeHi
Thanks for your answering to my question.
Please see inline.Quoted 18 lines
Hi, Hideyuki Yamashita
Quoted 15 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Hideyuki Yamashita
Sent: Wednesday, October 31, 2018 4:22 PM
To: [email protected]
Subject: [dpdk-dev] Question about jumbo frame support on ixgbeHi,
I have a very basic question about jumbo frame support for ixgbe.
I understand that some drivers support jumbo frame and if it receive jumbo packet (greater than 1500 byte), it creates mbuf chains and pass it to DPDK application through e.g.
rte_eth_rx_burst.Quoted 7 lines
Quoted 5 lines
However it looks that ixgbe driver does not support jumbo frame.
Q1. Is my understanding above correct?
Q2. If A1 equals YES, then are there any future plan to support jumbo frame on ixgbe?Your understanding above correct, but 82599 and x550 has support jumbo
frame receive by now!
Quoted 3 lines
In order to use this feature on ixgbe, you need do the following steps:
1. you must set dev_conf.rxmode.
max_rx_pkt_lento a big number, eg.9500, when doing port start, for example when start port in API
rte_eth_dev_start().Quoted 2 lines
ixgbe_dev_rx_init()will chose a scatter receive function if themax_rx_pkt_lenis larger than the mbuf size, you do not need to set
DEV_RX_OFFLOAD_SCATTERbit in dev_conf.rxmode.offloads, this is the work of PMD driver when it detect jumbo frame is needed to be supported. Thanks for your info.Quoted 1 line
2. set dev_conf.txmode.offloads bit of
DEV_TX_OFFLOAD_MULTI_SEGSto1 when doing
rte_eth_tx_queue_setup()or , this is very important!!Quoted 2 lines
If you not do this, you may only receive JUMBO frame but not forward out. Because as you say, the receive packets maybe has a mbuf
chains(depending on the size relationship of mbuf size and the max_rx_pkt_len).
Quoted 7 lines
Quoted 1 line
But in ixgbe PMD for setting tx function, it is confusing in
ixgbe_set_tx_function(), you need to take care of it, it is based on queue offloads bit!
What will happen ifDEV_TX_OFFLOAD_MULTI_SEGSis set to 1. Packets are sent fragmented or re-built as a Jumbo frame and sent to network?
(My guess is former(packet will be sent fragmented though))
Ixgbe will store the jumbo frame into several segments in mbuf when receiving from network, It will not be rebuild into one jumbo packets in PMD, so ixgbe will do that work when transmitting it. PMD need the flag for indication of this packet is Jumbo and do specific work, DEV_TX_OFFLOAD_MULTI_SEGS Can tell PMD chose a purpose tx function for doing these work.
Quoted 8 lines
Quoted 2 lines
3. enable it using CLI "port config mtu <
port_id> <value>" if you are usingtestpmd or using API
rte_eth_dev_set_mtu()for your own APP.Quoted 1 line
The mtu number is just what you need to update for a large number.
I want to know the relationship between 1,2 and 3.
Do I have to do all 3 steps to send/receive jumbo frame?
Or, when I relalize jumbo frame support programatically execute 1 and 2, if I do not modify program and just change setting via CLI then execute 3?
If you are use testpmd APP, you can excute (3). If not, you can set dev_conf.rxmode.offloads bits of DEV_RX_OFFLOAD_JUMBO_FRAME to 1 when you start ixgbe PMD code. 1-2-3 are all steps for configuration of registers for JUMBO frame enable.
Quoted 16 lines
Thanks and BR,
Hideyuki Yamashita
NTT TechnoCrossQuoted 1 line
And all my discussion is based on pf port, if you are using vf, we can have a
further discussion.
Quoted 7 lines
Please feel free to contact me if necessary.
Quoted 4 lines
BR,
Hideyuki Yamashita
NTT TechnoCross
Quoted 10 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Marvin Liu
Sent: Wednesday, October 31, 2018 2:49 PM
To: [email protected]
Cc: [email protected]; Liu, Yong <[email protected]>
Subject: [dpdk-dev] [PATCH] Doc: add known issue for restricted vdev ethdev ops in secondary process
Thomas Monjalon
AppliedQuoted 3 lines
Quoted 1 line
From: Marvin Liu
Acked-by John McNamara <[email protected]>
Applied, thanks