Re: [PATCH 1/4] net/tls: handle MSG_EOR for tls_sw TX flow

Jakub Kicinski
2023-06-17T06:26:11Z

On Wed, 14 Jun 2023 08:22:09 +0200 Hannes Reinecke wrote:
> @@ -1287,7 +1290,7 @@ int tls_sw_sendpage_locked(struct sock *sk, struct page *page,
> struct bio_vec bvec;
> struct msghdr msg = { .msg_flags = flags | MSG_SPLICE_PAGES, };
>
> - if (flags & ~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL |
> + if (flags & ~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL | MSG_EOR |
> MSG_SENDPAGE_NOTLAST | MSG_SENDPAGE_NOPOLICY |
> MSG_NO_SHARED_FRAGS))
> return -EOPNOTSUPP;

you added it to sendpage_locked but not normal sendpage