Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
de84727
)
Copying QoS Bits when fragmented, so that marking can happen properly also cleaning...
60/16260/5
author
Vijayabhaskar Katamreddy
<vkatamre@cisco.com>
Wed, 28 Nov 2018 20:05:23 +0000
(12:05 -0800)
committer
Ole Trøan
<otroan@employees.org>
Mon, 3 Dec 2018 10:35:12 +0000
(10:35 +0000)
Change-Id: I1558eec79af173e5cdcc769d7c3909039403eed8
Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com>
src/vnet/ip/ip_frag.c
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip_frag.c
b/src/vnet/ip/ip_frag.c
index
6efb883
..
de09987
100644
(file)
--- a/
src/vnet/ip/ip_frag.c
+++ b/
src/vnet/ip/ip_frag.c
@@
-61,6
+61,13
@@
frag_set_sw_if_index (vlib_buffer_t * to, vlib_buffer_t * from)
vnet_buffer (from)->ip.adj_index[VLIB_RX];
vnet_buffer (to)->ip.adj_index[VLIB_TX] =
vnet_buffer (from)->ip.adj_index[VLIB_TX];
+
+ /* Copy QoS Bits */
+ if (PREDICT_TRUE (from->flags & VNET_BUFFER_F_QOS_DATA_VALID))
+ {
+ vnet_buffer2 (to)->qos = vnet_buffer2 (from)->qos;
+ to->flags |= VNET_BUFFER_F_QOS_DATA_VALID;
+ }
}
static vlib_buffer_t *