diff options
| author | Oliver Hartkopp <socketcan@hartkopp.net> | 2010-08-17 04:59:14 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-08-19 03:08:30 -0400 |
| commit | 2244d07bfa2097cb00600da91c715a8aa547917e (patch) | |
| tree | 44d67d9ffba3697fffeb05c13e88aa76ebc3fd4a /include/net | |
| parent | 4d5870ec103e6569851b9710f0093f072b08439a (diff) | |
net: simplify flags for tx timestamping
This patch removes the abstraction introduced by the union skb_shared_tx in
the shared skb data.
The access of the different union elements at several places led to some
confusion about accessing the shared tx_flags e.g. in skb_orphan_try().
http://marc.info/?l=linux-netdev&m=128084897415886&w=2
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/ip.h | 2 | ||||
| -rw-r--r-- | include/net/sock.h | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 890f9725d681..7691aca133db 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -53,7 +53,7 @@ struct ipcm_cookie { | |||
| 53 | __be32 addr; | 53 | __be32 addr; |
| 54 | int oif; | 54 | int oif; |
| 55 | struct ip_options *opt; | 55 | struct ip_options *opt; |
| 56 | union skb_shared_tx shtx; | 56 | __u8 tx_flags; |
| 57 | }; | 57 | }; |
| 58 | 58 | ||
| 59 | #define IPCB(skb) ((struct inet_skb_parm*)((skb)->cb)) | 59 | #define IPCB(skb) ((struct inet_skb_parm*)((skb)->cb)) |
diff --git a/include/net/sock.h b/include/net/sock.h index ac53bfbdfe16..100e43bf95fb 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
| @@ -1669,17 +1669,13 @@ static inline void sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, | |||
| 1669 | 1669 | ||
| 1670 | /** | 1670 | /** |
| 1671 | * sock_tx_timestamp - checks whether the outgoing packet is to be time stamped | 1671 | * sock_tx_timestamp - checks whether the outgoing packet is to be time stamped |
| 1672 | * @msg: outgoing packet | ||
| 1673 | * @sk: socket sending this packet | 1672 | * @sk: socket sending this packet |
| 1674 | * @shtx: filled with instructions for time stamping | 1673 | * @tx_flags: filled with instructions for time stamping |
| 1675 | * | 1674 | * |
| 1676 | * Currently only depends on SOCK_TIMESTAMPING* flags. Returns error code if | 1675 | * Currently only depends on SOCK_TIMESTAMPING* flags. Returns error code if |
| 1677 | * parameters are invalid. | 1676 | * parameters are invalid. |
| 1678 | */ | 1677 | */ |
| 1679 | extern int sock_tx_timestamp(struct msghdr *msg, | 1678 | extern int sock_tx_timestamp(struct sock *sk, __u8 *tx_flags); |
| 1680 | struct sock *sk, | ||
| 1681 | union skb_shared_tx *shtx); | ||
| 1682 | |||
| 1683 | 1679 | ||
| 1684 | /** | 1680 | /** |
| 1685 | * sk_eat_skb - Release a skb if it is no longer needed | 1681 | * sk_eat_skb - Release a skb if it is no longer needed |
