diff options
author | John Lo <loj@cisco.com> | 2016-07-04 23:23:32 -0400 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-07-05 16:21:35 +0000 |
commit | 55bf5c938585f0cc91b848ec37a5abfaf01f9515 (patch) | |
tree | db08c0efcf55a9d13905616af27a8f819c2dc1c2 /dpdk/dpdk-16.04_patches/0020-net-enic-fix-releasing-mbufs-when-tearing-down-Rx-qu.patch | |
parent | f727db9e6fb50b2930aedf18bcdda55fe0b96889 (diff) |
ENIC driver patches to address various issues
Also clear x-bit for old patch files 0013-xxx and 0014-xxx.
Change-Id: I217fdbfb32cef1ae575c668270d3baf593e688c6
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'dpdk/dpdk-16.04_patches/0020-net-enic-fix-releasing-mbufs-when-tearing-down-Rx-qu.patch')
-rw-r--r-- | dpdk/dpdk-16.04_patches/0020-net-enic-fix-releasing-mbufs-when-tearing-down-Rx-qu.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dpdk/dpdk-16.04_patches/0020-net-enic-fix-releasing-mbufs-when-tearing-down-Rx-qu.patch b/dpdk/dpdk-16.04_patches/0020-net-enic-fix-releasing-mbufs-when-tearing-down-Rx-qu.patch new file mode 100644 index 00000000000..47bcda23431 --- /dev/null +++ b/dpdk/dpdk-16.04_patches/0020-net-enic-fix-releasing-mbufs-when-tearing-down-Rx-qu.patch @@ -0,0 +1,43 @@ +From 3f276178609472585a85fe440b549013a64d9327 Mon Sep 17 00:00:00 2001 +From: Nelson Escobar <neescoba@cisco.com> +Date: Tue, 14 Jun 2016 16:55:34 -0700 +Subject: [PATCH 20/25] net/enic: fix releasing mbufs when tearing down Rx + queue + +When trying to release the mbufs, the function was incorrectly +iterating over the max size configured instead of the actual size +of the ring. + +Fixes: 947d860c821f ("enic: improve Rx performance") + +Signed-off-by: Nelson Escobar <neescoba@cisco.com> +Reviewed-by: John Daley <johndale@cisco.com> +--- + drivers/net/enic/enic_main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c +index 68532d3..56ec96e 100644 +--- a/drivers/net/enic/enic_main.c ++++ b/drivers/net/enic/enic_main.c +@@ -91,7 +91,7 @@ static int is_eth_addr_valid(uint8_t *addr) + } + + static void +-enic_rxmbuf_queue_release(struct enic *enic, struct vnic_rq *rq) ++enic_rxmbuf_queue_release(__rte_unused struct enic *enic, struct vnic_rq *rq) + { + uint16_t i; + +@@ -100,7 +100,7 @@ enic_rxmbuf_queue_release(struct enic *enic, struct vnic_rq *rq) + return; + } + +- for (i = 0; i < enic->config.rq_desc_count; i++) { ++ for (i = 0; i < rq->ring.desc_count; i++) { + if (rq->mbuf_ring[i]) { + rte_pktmbuf_free_seg(rq->mbuf_ring[i]); + rq->mbuf_ring[i] = NULL; +-- +2.7.0 + |