From: Eric Dumazet <eric.dumazet@gmail.com>
To: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>,
netdev@vger.kernel.org
Cc: tglx@linutronix.de, jan.altenberg@linutronix.de,
vinicius.gomes@intel.com, kurt.kanzenbach@linutronix.de,
henrik@austad.us, richardcochran@gmail.com,
ilias.apalodimas@linaro.org, ivan.khoronzhuk@linaro.org,
mlichvar@redhat.com, willemb@google.com, jhs@mojatatu.com,
xiyou.wangcong@gmail.com, jiri@resnulli.us,
eric.dumazet@gmail.com, jeffrey.t.kirsher@intel.com
Subject: Re: [PATCH v2 net-next 02/14] net: Add a new socket option for a future transmit time.
Date: Sat, 7 Jul 2018 17:44:30 -0700 [thread overview]
Message-ID: <069d42b8-b5d1-cc4f-449c-f5ccbec7fa60@gmail.com> (raw)
In-Reply-To: <20180703224300.25300-3-jesus.sanchez-palencia@intel.com>
On 07/03/2018 03:42 PM, Jesus Sanchez-Palencia wrote:
> From: Richard Cochran <rcochran@linutronix.de>
>
> This patch introduces SO_TXTIME. User space enables this option in
> order to pass a desired future transmit time in a CMSG when calling
> sendmsg(2). The argument to this socket option is a 8-bytes long struct
> provided by the uapi header net_tstamp.h defined as:
>
> struct sock_txtime {
> clockid_t clockid;
> u32 flags;
> };
>
> Note that new fields were added to struct sock by filling a 2-bytes
> hole found in the struct. For that reason, neither the struct size or
> number of cachelines were altered.
> diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h
> index 4fe104b2411f..c9a77c353b98 100644
> --- a/include/uapi/linux/net_tstamp.h
> +++ b/include/uapi/linux/net_tstamp.h
> @@ -141,4 +141,19 @@ struct scm_ts_pktinfo {
> __u32 reserved[2];
> };
>
> +/*
> + * SO_TXTIME gets a struct sock_txtime with flags being an integer bit
> + * field comprised of these values.
> + */
> +enum txtime_flags {
> + SOF_TXTIME_DEADLINE_MODE = (1 << 0),
> +
> + SOF_TXTIME_FLAGS_MASK = (SOF_TXTIME_DEADLINE_MODE)
> +};
> +
> +struct sock_txtime {
> + clockid_t clockid; /* reference clockid */
> + u32 flags; /* flags defined by enum txtime_flags */
> +};
> +
I was under the impression that we could not use 'u32' type in include/uapi/linux/* file
This must be replaced by __u32, right ?
next prev parent reply other threads:[~2018-07-08 0:44 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-03 22:42 [PATCH v2 net-next 00/14] Scheduled packet Transmission: ETF Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 01/14] net: Clear skb->tstamp only on the forwarding path Jesus Sanchez-Palencia
2018-07-13 17:35 ` Eric Dumazet
2018-07-16 21:52 ` Jesus Sanchez-Palencia
2018-07-16 23:15 ` Eric Dumazet
2018-07-18 18:19 ` Jesus Sanchez-Palencia
2018-07-18 18:40 ` Dave Taht
2018-07-03 22:42 ` [PATCH v2 net-next 02/14] net: Add a new socket option for a future transmit time Jesus Sanchez-Palencia
2018-07-08 0:44 ` Eric Dumazet [this message]
2018-07-09 22:21 ` Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 03/14] net: ipv4: Hook into time based transmission Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 04/14] net: ipv6: " Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 05/14] net: packet: " Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 06/14] net/sched: Allow creating a Qdisc watchdog with other clocks Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 07/14] net/sched: Introduce the ETF Qdisc Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 08/14] net/sched: Add HW offloading capability to ETF Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 09/14] igb: Refactor igb_configure_cbs() Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 10/14] igb: Only change Tx arbitration when CBS is on Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 11/14] igb: Refactor igb_offload_cbs() Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 12/14] igb: Only call skb_tx_timestamp after descriptors are ready Jesus Sanchez-Palencia
2018-07-03 22:42 ` [PATCH v2 net-next 13/14] igb: Add support for ETF offload Jesus Sanchez-Palencia
2018-07-03 22:43 ` [PATCH v2 net-next 14/14] net/sched: Make etf report drops on error_queue Jesus Sanchez-Palencia
2018-07-04 13:37 ` [PATCH v2 net-next 00/14] Scheduled packet Transmission: ETF David Miller
2018-07-06 21:38 ` Stephen Hemminger
2018-07-09 15:24 ` Jesus Sanchez-Palencia
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=069d42b8-b5d1-cc4f-449c-f5ccbec7fa60@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=henrik@austad.us \
--cc=ilias.apalodimas@linaro.org \
--cc=ivan.khoronzhuk@linaro.org \
--cc=jan.altenberg@linutronix.de \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jesus.sanchez-palencia@intel.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kurt.kanzenbach@linutronix.de \
--cc=mlichvar@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.com \
--cc=tglx@linutronix.de \
--cc=vinicius.gomes@intel.com \
--cc=willemb@google.com \
--cc=xiyou.wangcong@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;
as well as URLs for NNTP newsgroup(s).