• Oleksij Rempel's avatar
    can: j1939: extend UAPI to notify about RX status · 5b9272e9
    Oleksij Rempel authored
    To be able to create applications with user friendly feedback, we need be
    able to provide receive status information.
    
    Typical ETP transfer may take seconds or even hours. To give user some
    clue or show a progress bar, the stack should push status updates.
    Same as for the TX information, the socket error queue will be used with
    following new signals:
    - J1939_EE_INFO_RX_RTS   - received and accepted request to send signal.
    - J1939_EE_INFO_RX_DPO   - received data package offset signal
    - J1939_EE_INFO_RX_ABORT - RX session was aborted
    
    Instead of completion signal, user will get data package.
    To activate this signals, application should set
    SOF_TIMESTAMPING_RX_SOFTWARE to the SO_TIMESTAMPING socket option. This
    will avoid unpredictable application behavior for the old software.
    
    Link: https://lore.kernel.org/r/20210707094854.30781-3-o.rempel@pengutronix.deSigned-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
    Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
    5b9272e9
transport.c 53.9 KB