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:
62f75e9
)
session: return err if send dgram fails
10/43910/3
author
Florin Coras
<
[email protected]
>
Sat, 18 Oct 2025 21:47:21 +0000
(17:47 -0400)
committer
Damjan Marion
<
[email protected]
>
Sun, 19 Oct 2025 19:04:08 +0000
(19:04 +0000)
Make sure app_send_dgram_segs_raw returns error if dgram send fails just
like app_send_stream_raw if not byte is enqueued.
Type: improvement
Change-Id: I4366a4718e9fedde87c8e79363bb4a91b5311588
Signed-off-by: Florin Coras <
[email protected]
>
src/vnet/session/application_interface.h
patch
|
blob
|
history
diff --git
a/src/vnet/session/application_interface.h
b/src/vnet/session/application_interface.h
index
d88c1c3
..
40c6b15
100644
(file)
--- a/
src/vnet/session/application_interface.h
+++ b/
src/vnet/session/application_interface.h
@@
-667,11
+667,11
@@
app_send_dgram_segs_raw (svm_fifo_t *f, app_session_transport_t *at,
int rv;
if (svm_fifo_max_enqueue_prod (f) < seg_len)
- return
0
;
+ return
-1
;
rv = svm_fifo_enqueue_segments (f, segs, nsegs, 0 /* allow partial */);
if (PREDICT_FALSE (rv < 0))
- return
0
;
+ return
rv
;
if (do_evt)
{