[PATCH v1 00/25] UAPI rework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch set is mostly about UAPI review and rework. If you have some
applications working with this stack, please update it.

Most important changes are:
- bind() will set PGN for receive filter.
- connect() will set PGN for send()
- no send() or connect() to broadcast is allowed if socket is not
  configured with flag SO_BROADCAST.
- huge transfer now supported with non blocking mode
- MSG_DONTWAIT is now supported
- signals, for example SIGSTOP, SIGCON, are supported now. Use space
  should be updated to handle it properly.
- no need to change wmem

Please, review and test it. Updated can-utils with latest UAPI support
can be found here:
https://github.com/olerem/can-utils/tree/uapi
After some review rounds it will go mainline.

Oleksij Rempel (25):
  j1939: socket: reduce the scope of addr in j1939_sk_sendmsg
  j1939: socket: add fixme to j1939_sk_send_multi
  j1939: socket: remove unused label put_dev
  j1939: rename addr.pgn to addr.dst_pgn
  j1939: socket: introduce local_pgn and set in bind()
  j1939: socket: use pgn set by bind as rx filter
  j1939: move PGN defines to uapi
  j1939: socket: rename j1939_packet_match to j1939_sk_match_filter
  j1939: socket: add j1939_sk_match_dst
  j1939: socket: allow reconnect
  j1939: socket: make sure, we connect only to the same interface.
  j1939: socket: prevent sending broadcast message without the
    SO_BROADCAST flag.
  j1939: socket: rework j1939_sk_sendmsg broadkast filter.
  j1939: socket: rework receive filter.
  j1939: socket: check broadcast on connect
  j1939: make j1939_session_get_by_skcb available for other files
  j1939: add j1939_sk_send_multi_abort() and use it in
    j1939_session_cancel()
  j1939: socket: add non blocking ETP send support
  j1939: transport: make sure, we execute __j1939_session_drop() one
    time
  j1939: transport: j1939_tp_cmd_recv: use cmd instead of dat
  j1939: transport: don't use J1939_XTP_ABORT_GENERIC for extd session
  j1939: transport: j1939_tp_send: remove j1939_session_cancel
  j1939: transport: provide abort to error mapping
  j1939: transport: provide human readable abort reason descriptions
  j1939: transport: j1939_xtp_rx_abort_one: propagate abort err to the
    socket

 include/uapi/linux/can/j1939.h |   8 +-
 net/can/j1939/address-claim.c  |   6 +-
 net/can/j1939/j1939-priv.h     |  14 +-
 net/can/j1939/main.c           |  18 +--
 net/can/j1939/socket.c         | 235 +++++++++++++++++++++-------
 net/can/j1939/transport.c      | 278 ++++++++++++++++++++++++++-------
 6 files changed, 431 insertions(+), 128 deletions(-)

-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux