From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nambiar, Amritha" Subject: Re: [net-next PATCH v3 3/5] net: Enable Tx queue selection based on Rx queues Date: Wed, 6 Jun 2018 16:02:19 -0700 Message-ID: <9f4e6923-eed8-d37a-d14b-80b94f51eba0@intel.com> References: <152818727065.20862.10108275498797168689.stgit@anamdev.jf.intel.com> <152818788079.20862.16138764303449301927.stgit@anamdev.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Network Development , David Miller , Alexander Duyck , Eric Dumazet , Hannes Frederic Sowa , Tom Herbert To: Willem de Bruijn , "Samudrala, Sridhar" Return-path: Received: from mga11.intel.com ([192.55.52.93]:36334 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752055AbeFFXCU (ORCPT ); Wed, 6 Jun 2018 19:02:20 -0400 In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 6/6/2018 12:13 PM, Willem de Bruijn wrote: > On Wed, Jun 6, 2018 at 3:08 PM, Samudrala, Sridhar > wrote: >> >> On 6/6/2018 11:56 AM, Willem de Bruijn wrote: >>> >>> On Tue, Jun 5, 2018 at 4:38 AM, Amritha Nambiar >>> wrote: >>>> >>>> This patch adds support to pick Tx queue based on the Rx queue(s) map >>>> configuration set by the admin through the sysfs attribute >>>> for each Tx queue. If the user configuration for receive queue(s) map >>>> does not apply, then the Tx queue selection falls back to CPU(s) map >>>> based selection and finally to hashing. >>>> >>>> Signed-off-by: Amritha Nambiar >>>> Signed-off-by: Sridhar Samudrala >>>> --- >>>> int sysctl_tcp_max_orphans __read_mostly = NR_FILE; >>>> >>>> @@ -5574,6 +5575,7 @@ void tcp_finish_connect(struct sock *sk, struct >>>> sk_buff *skb) >>>> if (skb) { >>>> icsk->icsk_af_ops->sk_rx_dst_set(sk, skb); >>>> security_inet_conn_established(sk, skb); >>>> + sk_mark_napi_id(sk, skb); >>>> } >>> >>> This and the call below should be in a standalone patch, as the mark >>> changes are not rxq-xps specific. Is the additional earlier marking really >>> required? >> >> >> The additional earlier marking in tcp_finish_connect() allows a client app >> to do >> SO_INCOMING_NAPI_ID after a a connect() call to get the right queue >> association >> for a socket. >> >> The marking in tcp_conn_request() allows syn-ack to go on the right tx-queue >> associated with the queue on which syn is received. > > I understand the intent. My question really is whether it is needed. > Marking has been slightly lossy in this regard in the past, not > necessarily as an oversight. I don't mean to make that call here, > but it's worth discussion and its own patch. > Will separate this out into a standalone patch in v4.