From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Daniel Borkmann <dborkman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH man-pages] packet.7: improve PACKET_QDISC_BYPASS description
Date: Sun, 23 Feb 2014 08:35:50 +0100 [thread overview]
Message-ID: <5309A4D6.5060104@gmail.com> (raw)
In-Reply-To: <e28f3b491ae1d2e4538ef6b84871eb773185f089.1392373992.git.dborkman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
On 02/14/2014 11:34 AM, Daniel Borkmann wrote:
> Improve the description resp. provide some more details.
>
> Signed-off-by: Daniel Borkmann <dborkman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> man7/packet.7 | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/man7/packet.7 b/man7/packet.7
> index 1d3f222..7a2ce1e 100644
> --- a/man7/packet.7
> +++ b/man7/packet.7
> @@ -431,9 +431,14 @@ integer option before creating the ring.
> .BR PACKET_QDISC_BYPASS " (since Linux 3.14)"
> .\" commit d346a3fae3ff1d99f5d0c819bf86edf9094a26a1
> By default, packets sent through packet sockets pass through the kernel's
> -qdisc (traffic control) layer.
> -This can be bypassed by setting this integer option to 1;
> -this is useful for usage scenarios similar to pktgen.
> +qdisc (traffic control) layer, which is fine for the vast majority of use
> +cases.
> +For traffic generator appliances using packet socket that intend to flood
> +the network with brute force i.e., to test devices under load in a similar
> +fashion to pktgen, this layer can be bypassed by setting this integer option
> +to 1. Side-effects are that packet buffering in qdisc layer is avoided
> +which will lead to increased drops when net device transmit queues are busy;
> +therefore, use at your own risk.
> .SS Ioctls
> .B SIOCGSTAMP
> can be used to receive the timestamp of the last received packet.
>
Thanks, Daniel. I applied, and then tweaked the text a little:
PACKET_QDISC_BYPASS (since Linux 3.14)
By default, packets sent through packet sockets pass
through the kernel's qdisc (traffic control) layer,
which is fine for the vast majority of use cases. For
traffic generator appliances using packet sockets that
intend to brute-force flood the network—for example,
to test devices under load in a similar fashion to
pktgen—this layer can be bypassed by setting this
integer option to 1. A side-effects is that packet
buffering in the qdisc layer is avoided, which will
lead to increased drops when network device transmit
queues are busy; therefore, use at your own risk.
Okay?
Thanks,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-02-23 7:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1392373992.git.dborkman@redhat.com>
[not found] ` <cover.1392373992.git.dborkman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-02-14 10:34 ` [PATCH man-pages] packet.7: improve PACKET_QDISC_BYPASS description Daniel Borkmann
[not found] ` <e28f3b491ae1d2e4538ef6b84871eb773185f089.1392373992.git.dborkman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-02-23 7:35 ` Michael Kerrisk (man-pages) [this message]
[not found] ` <5309A4D6.5060104-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-02-23 11:47 ` Daniel Borkmann
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=5309A4D6.5060104@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=dborkman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).