lkml.org 
[lkml]   [2022]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/2] can: drop tx skb if the device is in listen only mode
    Date
    In listen only mode, tx CAN frames can still reach the driver if
    injected via the packet socket. This series add a check toward
    CAN_CTRLMODE_LISTENONLY in can_dropped_invalid_skb() to discard such
    skb. The first patch does some preparation work and migrates
    can_dropped_invalid_skb() from skb.h to dev.h. The second and last
    patch is the actual change.

    Vincent Mailhol (2):
    can: move can_dropped_invalid_skb from skb.h to dev.h
    can: dev: drop tx skb if in listen only mode

    include/linux/can/dev.h | 35 +++++++++++++++++++++++++++++++++++
    include/linux/can/skb.h | 28 ----------------------------
    2 files changed, 35 insertions(+), 28 deletions(-)

    --
    2.35.1

    \
     
     \ /
      Last update: 2022-05-13 16:24    [W:4.124 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site