From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4857C04AAC for ; Mon, 20 May 2019 21:22:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC54021479 for ; Mon, 20 May 2019 21:22:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="0lD7tXzo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbfETVWn (ORCPT ); Mon, 20 May 2019 17:22:43 -0400 Received: from merlin.infradead.org ([205.233.59.134]:59522 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbfETVWn (ORCPT ); Mon, 20 May 2019 17:22:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ACxGq1M7IZr9P5SOjNrXmj2JEHCx2FH5VHBHcRDvXgE=; b=0lD7tXzo14MtzuLF0wcgWVz0U/ eQlvMKzoDFBSVwFowb60/CDb7gflfUIvtSGm2idgX7nhK2ZVWcoYmuBEcj6oZhnzGNFg8o4HSpOSb MEEk/FrDChLBV7DN/zaIx/JNG3puK+nCH2fOzkot3BqH+jkYz7IZ6fEfkuiiaTHEwyVpTztCOEWYp eR3twNWOmLcFhIUJdSQqDcid9fTD+S1lwxk/QBdDssZSxBOpyn53YdBPk5sbNUiWrERVMrGmBui4h F968btKSgWvlwgCDomy1zuuUEG7XmZ+jQe7lEKdPYlvX8OTww30bp/yHoR9oqIq6nGJjjo/gUCCZA jks4cJeA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hSpjm-0004aE-8h; Mon, 20 May 2019 21:22:26 +0000 To: "netdev@vger.kernel.org" , David Miller Cc: Magnus Karlsson , Daniel Borkmann From: Randy Dunlap Subject: [PATCH] Documentation/networking: fix af_xdp.rst Sphinx warnings Message-ID: Date: Mon, 20 May 2019 14:22:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Randy Dunlap Fix Sphinx warnings in Documentation/networking/af_xdp.rst by adding indentation: Documentation/networking/af_xdp.rst:319: WARNING: Literal block expected; none found. Documentation/networking/af_xdp.rst:326: WARNING: Literal block expected; none found. Fixes: 0f4a9b7d4ecb ("xsk: add FAQ to facilitate for first time users") Signed-off-by: Randy Dunlap Cc: Magnus Karlsson Cc: Daniel Borkmann --- Documentation/networking/af_xdp.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- lnx-52-rc1.orig/Documentation/networking/af_xdp.rst +++ lnx-52-rc1/Documentation/networking/af_xdp.rst @@ -316,16 +316,16 @@ A: When a netdev of a physical NIC is in all the traffic, you can force the netdev to only have 1 queue, queue id 0, and then bind to queue 0. You can use ethtool to do this:: - sudo ethtool -L combined 1 + sudo ethtool -L combined 1 If you want to only see part of the traffic, you can program the NIC through ethtool to filter out your traffic to a single queue id that you can bind your XDP socket to. Here is one example in which UDP traffic to and from port 4242 are sent to queue 2:: - sudo ethtool -N rx-flow-hash udp4 fn - sudo ethtool -N flow-type udp4 src-port 4242 dst-port \ - 4242 action 2 + sudo ethtool -N rx-flow-hash udp4 fn + sudo ethtool -N flow-type udp4 src-port 4242 dst-port \ + 4242 action 2 A number of other ways are possible all up to the capabilitites of the NIC you have.