netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/2] net: Introducing socket mark receive socket option
@ 2015-03-02 13:14 Eyal Birger
  2015-03-02 13:14 ` [PATCH net-next v4 1/2] net: Rename sock_recv_ts_and_drops() to sock_cmsg_recv() Eyal Birger
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Eyal Birger @ 2015-03-02 13:14 UTC (permalink / raw)
  To: davem; +Cc: willemb, edumazet, shmulik.ladkani, netdev, Eyal Birger

This patch set introduces a new socket option for fetching the mark
of skbs passed to sockets as ancillary data.

A userspace program may wish to receive the mark of packets it
receives, for example for distinguishing between different TPROXY
diversion rules to the same userspace proxy socket.

The patch set includes a minor function renaming.

---
Changes in v4:
- Rebase
- skb->mark is no longer aliased, so skb->priority is left as it is
  and change in IGMPv3/MLD is no longer needed
- rxrpc no longer uses sock_recv_ts_and_drops() so renaming there is
  not needed
Changes in v3:
- Rebase
- Set skb->priority immediately prior to transmittion in IGMPv3/MLD
- Extended commit message regarding use of skb->priority instead of
  skb->mark in struct sk_buff union
Changes in v2:
- Function parameter indentation
- Commit message formatting
---

Eyal Birger (2):
  net: Rename sock_recv_ts_and_drops() to sock_cmsg_recv()
  net: Introducing socket mark receive socket option

 arch/alpha/include/uapi/asm/socket.h   |  2 ++
 arch/avr32/include/uapi/asm/socket.h   |  2 ++
 arch/cris/include/uapi/asm/socket.h    |  2 ++
 arch/frv/include/uapi/asm/socket.h     |  2 ++
 arch/ia64/include/uapi/asm/socket.h    |  2 ++
 arch/m32r/include/uapi/asm/socket.h    |  2 ++
 arch/mips/include/uapi/asm/socket.h    |  2 ++
 arch/mn10300/include/uapi/asm/socket.h |  2 ++
 arch/parisc/include/uapi/asm/socket.h  |  2 ++
 arch/powerpc/include/uapi/asm/socket.h |  2 ++
 arch/s390/include/uapi/asm/socket.h    |  2 ++
 arch/sparc/include/uapi/asm/socket.h   |  2 ++
 arch/xtensa/include/uapi/asm/socket.h  |  2 ++
 include/net/sock.h                     | 18 ++++++++++--------
 include/uapi/asm-generic/socket.h      |  2 ++
 net/atm/common.c                       |  2 +-
 net/bluetooth/af_bluetooth.c           |  4 ++--
 net/can/bcm.c                          |  2 +-
 net/can/raw.c                          |  2 +-
 net/core/sock.c                        |  8 ++++++++
 net/ieee802154/socket.c                |  4 ++--
 net/ipv4/raw.c                         |  2 +-
 net/ipv4/udp.c                         |  2 +-
 net/ipv6/raw.c                         |  2 +-
 net/ipv6/udp.c                         |  2 +-
 net/key/af_key.c                       |  2 +-
 net/packet/af_packet.c                 |  2 +-
 net/sctp/socket.c                      |  2 +-
 net/socket.c                           | 15 ++++++++++++---
 29 files changed, 72 insertions(+), 25 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-03-03  4:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-02 13:14 [PATCH net-next v4 0/2] net: Introducing socket mark receive socket option Eyal Birger
2015-03-02 13:14 ` [PATCH net-next v4 1/2] net: Rename sock_recv_ts_and_drops() to sock_cmsg_recv() Eyal Birger
2015-03-02 13:14 ` [PATCH net-next v4 2/2] net: Introducing socket mark receive socket option Eyal Birger
2015-03-02 13:29 ` [PATCH net-next v4 0/2] " Florian Westphal
2015-03-02 13:48   ` Eyal Birger
2015-03-02 14:36     ` Florian Westphal
2015-03-02 18:34       ` Eyal Birger
2015-03-02 18:55         ` Florian Westphal
2015-03-02 20:05       ` David Miller
2015-03-02 20:38         ` Eyal Birger
2015-03-02 20:57           ` David Miller
2015-03-02 21:11             ` Eyal Birger
2015-03-02 21:45               ` David Miller
2015-03-03  3:45                 ` Eyal Birger
2015-03-03  4:01                   ` David Miller
2015-03-02 20:01 ` David Miller

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).