diff options
author | Steven <sluong@cisco.com> | 2018-10-02 14:36:13 -0700 |
---|---|---|
committer | steven luong <sluong@cisco.com> | 2018-10-03 14:33:30 +0000 |
commit | 3c6015b03480938bc8dc66405096fecf47ed6c0c (patch) | |
tree | cb50c950b0410cd49fb0b6b918012e579f17b66b /src/plugins/vmxnet3/vmxnet3.c | |
parent | e4db80344a8448930a71f5b1200757e7c6c9072b (diff) |
vmxnet3: error handling
outbound -- if we have to drop the packet due to no descriptor space is available, drop the
whole packet, not fragments.
inbound -- check and drop error packets
Change-Id: Ida1d32e61521bafd67f714d729ad53cd7c487dc6
Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/plugins/vmxnet3/vmxnet3.c')
-rw-r--r-- | src/plugins/vmxnet3/vmxnet3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/vmxnet3/vmxnet3.c b/src/plugins/vmxnet3/vmxnet3.c index 9f2b8a8c596..ac99411a4e2 100644 --- a/src/plugins/vmxnet3/vmxnet3.c +++ b/src/plugins/vmxnet3/vmxnet3.c @@ -253,6 +253,7 @@ vmxnet3_rxq_init (vlib_main_t * vm, vmxnet3_device_t * vd, u16 qid, u16 qsz) ring = &rxq->rx_ring[rid]; ring->gen = VMXNET3_RXF_GEN; + ring->rid = rid; vec_validate_aligned (ring->bufs, rxq->size, CLIB_CACHE_LINE_BYTES); } rxq->rx_comp_ring.gen = VMXNET3_RXCF_GEN; |