* [PATCH] virtio: Add default_txconf @ 2015-02-23 7:51 Takuya ASADA [not found] ` <1424677885-24171-1-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Takuya ASADA @ 2015-02-23 7:51 UTC (permalink / raw) To: dev-VfR2kkLFssw When I tried to launch test-pmd on KVM guest of Fedora21, I got following error: Configuring Port 0 (socket 0) Fail to configure port 0 tx queues EAL: Error - exiting with code: 1 Cause: Start ports failed I found that the error caused here, and actual error message was "TX checksum offload not supported": http://dpdk.org/browse/dpdk/tree/lib/librte_pmd_virtio/virtio_rxtx.c#n425 This patch adds default_txconf on virtio pmd, to avoid the error. Signed-off-by: Takuya ASADA <syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org> --- lib/librte_pmd_virtio/virtio_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c index b3b5bb6..9c183bb 100644 --- a/lib/librte_pmd_virtio/virtio_ethdev.c +++ b/lib/librte_pmd_virtio/virtio_ethdev.c @@ -1188,6 +1188,9 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->min_rx_bufsize = VIRTIO_MIN_RX_BUFSIZE; dev_info->max_rx_pktlen = VIRTIO_MAX_RX_PKTLEN; dev_info->max_mac_addrs = VIRTIO_MAX_MAC_ADDRS; + dev_info->default_txconf = (struct rte_eth_txconf) { + .txq_flags = ETH_TXQ_FLAGS_NOOFFLOADS + }; } /* -- 2.1.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <1424677885-24171-1-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>]
* Re: [PATCH] virtio: Add default_txconf [not found] ` <1424677885-24171-1-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org> @ 2015-03-07 21:38 ` De Lara Guarch, Pablo [not found] ` <E115CCD9D858EF4F90C690B0DCB4D89727267B50-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: De Lara Guarch, Pablo @ 2015-03-07 21:38 UTC (permalink / raw) To: Takuya ASADA, dev-VfR2kkLFssw@public.gmane.org > -----Original Message----- > From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Takuya ASADA > Sent: Monday, February 23, 2015 7:51 AM > To: dev-VfR2kkLFssw@public.gmane.org > Subject: [dpdk-dev] [PATCH] virtio: Add default_txconf > > When I tried to launch test-pmd on KVM guest of Fedora21, I got following > error: > > Configuring Port 0 (socket 0) > Fail to configure port 0 tx queues > EAL: Error - exiting with code: 1 > Cause: Start ports failed > > I found that the error caused here, and actual error message was "TX > checksum offload not supported": > http://dpdk.org/browse/dpdk/tree/lib/librte_pmd_virtio/virtio_rxtx.c#n425 > > This patch adds default_txconf on virtio pmd, to avoid the error. > > Signed-off-by: Takuya ASADA <syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org> > --- > lib/librte_pmd_virtio/virtio_ethdev.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c > b/lib/librte_pmd_virtio/virtio_ethdev.c > index b3b5bb6..9c183bb 100644 > --- a/lib/librte_pmd_virtio/virtio_ethdev.c > +++ b/lib/librte_pmd_virtio/virtio_ethdev.c > @@ -1188,6 +1188,9 @@ virtio_dev_info_get(struct rte_eth_dev *dev, > struct rte_eth_dev_info *dev_info) > dev_info->min_rx_bufsize = VIRTIO_MIN_RX_BUFSIZE; > dev_info->max_rx_pktlen = VIRTIO_MAX_RX_PKTLEN; > dev_info->max_mac_addrs = VIRTIO_MAX_MAC_ADDRS; > + dev_info->default_txconf = (struct rte_eth_txconf) { > + .txq_flags = ETH_TXQ_FLAGS_NOOFFLOADS > + }; > } > > /* > -- > 2.1.0 Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <E115CCD9D858EF4F90C690B0DCB4D89727267B50-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org>]
* Re: [PATCH] virtio: Add default_txconf [not found] ` <E115CCD9D858EF4F90C690B0DCB4D89727267B50-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org> @ 2015-03-09 11:09 ` Thomas Monjalon 0 siblings, 0 replies; 3+ messages in thread From: Thomas Monjalon @ 2015-03-09 11:09 UTC (permalink / raw) To: Takuya ASADA; +Cc: dev-VfR2kkLFssw > > When I tried to launch test-pmd on KVM guest of Fedora21, I got following > > error: > > > > Configuring Port 0 (socket 0) > > Fail to configure port 0 tx queues > > EAL: Error - exiting with code: 1 > > Cause: Start ports failed > > > > I found that the error caused here, and actual error message was "TX > > checksum offload not supported": > > http://dpdk.org/browse/dpdk/tree/lib/librte_pmd_virtio/virtio_rxtx.c#n425 > > > > This patch adds default_txconf on virtio pmd, to avoid the error. > > > > Signed-off-by: Takuya ASADA <syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org> > > Acked-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Applied, thanks ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-09 11:09 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-02-23 7:51 [PATCH] virtio: Add default_txconf Takuya ASADA [not found] ` <1424677885-24171-1-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org> 2015-03-07 21:38 ` De Lara Guarch, Pablo [not found] ` <E115CCD9D858EF4F90C690B0DCB4D89727267B50-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2015-03-09 11:09 ` Thomas Monjalon
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).