From: "Samudrala, Sridhar" <sridhar.samudrala@intel.com>
To: Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
Amritha Nambiar <amritha.nambiar@intel.com>
Cc: Network Development <netdev@vger.kernel.org>,
David Miller <davem@davemloft.net>,
Alexander Duyck <alexander.h.duyck@intel.com>,
Eric Dumazet <edumazet@google.com>,
Hannes Frederic Sowa <hannes@stressinduktion.org>,
Tom Herbert <tom@herbertland.com>
Subject: Re: [net-next PATCH v3 3/5] net: Enable Tx queue selection based on Rx queues
Date: Wed, 6 Jun 2018 12:08:02 -0700 [thread overview]
Message-ID: <cbf3d17c-6585-b66c-35d1-1a65811bb8d0@intel.com> (raw)
In-Reply-To: <CAF=yD-LyoCxs7dOtKpVuWcFcQ_DBr0O=yw8-Crszma=qC+F3gA@mail.gmail.com>
On 6/6/2018 11:56 AM, Willem de Bruijn wrote:
> On Tue, Jun 5, 2018 at 4:38 AM, Amritha Nambiar
> <amritha.nambiar@intel.com> 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 <amritha.nambiar@intel.com>
>> Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
>> ---
>> 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 would separate out the entire rxq caching with sk_rx_queue_mapping from
> the refactoring of get_xps_queue. The two changes are quite independent.
>
>> tcp_init_transfer(sk, BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB);
>> @@ -6402,6 +6404,7 @@ int tcp_conn_request(struct request_sock_ops *rsk_ops,
>> tcp_rsk(req)->snt_isn = isn;
>> tcp_rsk(req)->txhash = net_tx_rndhash();
>> tcp_openreq_init_rwin(req, sk, dst);
>> + sk_mark_rx_queue(req_to_sk(req), skb);
next prev parent reply other threads:[~2018-06-06 19:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 8:37 [net-next PATCH v3 0/5] Symmetric queue selection using XPS for Rx queues Amritha Nambiar
2018-06-05 8:37 ` [net-next PATCH v3 1/5] net: Refactor XPS for CPUs and " Amritha Nambiar
2018-06-05 8:37 ` [net-next PATCH v3 2/5] net: Use static_key for XPS maps Amritha Nambiar
2018-06-05 8:38 ` [net-next PATCH v3 3/5] net: Enable Tx queue selection based on Rx queues Amritha Nambiar
2018-06-06 18:56 ` Willem de Bruijn
2018-06-06 19:08 ` Samudrala, Sridhar [this message]
2018-06-06 19:13 ` Willem de Bruijn
2018-06-06 23:02 ` Nambiar, Amritha
[not found] ` <CALx6S35273zLb-WDs-5r+b_eWoB8jmZfUJvYRDHWNo4fjJLyag@mail.gmail.com>
2018-06-06 22:52 ` Nambiar, Amritha
2018-06-05 8:38 ` [net-next PATCH v3 4/5] net-sysfs: Add interface for Rx queue(s) map per Tx queue Amritha Nambiar
2018-06-05 8:38 ` [net-next PATCH v3 5/5] Documentation: Add explanation for XPS using Rx-queue(s) map Amritha Nambiar
2018-06-05 16:33 ` [net-next PATCH v3 0/5] Symmetric queue selection using XPS for Rx queues David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cbf3d17c-6585-b66c-35d1-1a65811bb8d0@intel.com \
--to=sridhar.samudrala@intel.com \
--cc=alexander.h.duyck@intel.com \
--cc=amritha.nambiar@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hannes@stressinduktion.org \
--cc=netdev@vger.kernel.org \
--cc=tom@herbertland.com \
--cc=willemdebruijn.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox