Messages in this thread | | | Date | Fri, 8 Apr 2022 21:49:54 -0600 | Subject | Re: [PATCH RESEND net-next v5 1/4] net: sock: introduce sock_queue_rcv_skb_reason() | From | David Ahern <> |
| |
On 4/7/22 12:20 AM, menglong8.dong@gmail.com wrote: > From: Menglong Dong <imagedong@tencent.com> > > In order to report the reasons of skb drops in 'sock_queue_rcv_skb()', > introduce the function 'sock_queue_rcv_skb_reason()'. > > As the return value of 'sock_queue_rcv_skb()' is used as the error code, > we can't make it as drop reason and have to pass extra output argument. > 'sock_queue_rcv_skb()' is used in many places, so we can't change it > directly. > > Introduce the new function 'sock_queue_rcv_skb_reason()' and make > 'sock_queue_rcv_skb()' an inline call to it. > > Reviewed-by: Hao Peng <flyingpeng@tencent.com> > Reviewed-by: Jiang Biao <benbjiang@tencent.com> > Signed-off-by: Menglong Dong <imagedong@tencent.com> > --- > include/net/sock.h | 9 ++++++++- > net/core/sock.c | 30 ++++++++++++++++++++++++------ > 2 files changed, 32 insertions(+), 7 deletions(-) >
Reviewed-by: David Ahern <dsahern@kernel.org>
| |