can: isotp: upgrade 5.10 LTS to latest 6.6 mainline code base
Subsystems (3)
Oliver Hartkopp
maintainerPATCH 1/1 can: isotp: upgrade 5.10 LTS to latest 6.6 mainline code base
The backport of commit 9c5df2f14ee3 ("can: isotp: isotp_ops: fix poll() to not report false EPOLLOUT events") introduced a new regression where the fix could potentially introduce new side effects.
To reduce the risk of other unmet dependencies and missing fixes and checks the latest mainline code base is ported back to the 5.10 LTS tree.
To meet the former Linux 5.10 API these commits have been reverted:e3ae2365efc1 ("net: sock: introduce sk_error_report")f4b41f062c42 ("net: remove noblock parameter from skb_recv_datagram()") 96a7457a14d9 ("can: skb: unify skb CAN frame identification helpers") dc97391e6610 ("sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)") 0145462fc802 ("can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get SOCK_RXQ_OVFL infos")
New features and communication stability measures:9f39d36530e5 ("can: isotp: add support for transmission without flow control") 96d1c81e6a04 ("can: isotp: add module parameter for maximum pdu size") 4b7fe92c0690 ("can: isotp: add local echo tx processing for consecutive frames") 530e0d46c613 ("can: isotp: set default value for N_As to 50 micro seconds")
And various sanity checks, fixes and improved return values.
--- include/uapi/linux/can/isotp.h | 25 +- net/can/isotp.c | 495 ++++++++++++++++++++++----------- 2 files changed, 347 insertions(+), 173 deletions(-)
include/uapi/linux/can/isotp.h +13 -12
@@ -122,22 +122,23 @@ struct can_isotp_ll_options {/* by the CAN netdriver configuration */ };/* flags for isotp behaviour */ -#define CAN_ISOTP_LISTEN_MODE 0x001/* listen only (do not send FC) */ -#define CAN_ISOTP_EXTEND_ADDR 0x002/* enable extended addressing */ -#define CAN_ISOTP_TX_PADDING 0x004/* enable CAN frame padding tx path */ -#define CAN_ISOTP_RX_PADDING 0x008/* enable CAN frame padding rx path */ -#define CAN_ISOTP_CHK_PAD_LEN 0x010/* check received CAN frame padding */ -#define CAN_ISOTP_CHK_PAD_DATA 0x020/* check received CAN frame padding */ -#define CAN_ISOTP_HALF_DUPLEX 0x040/* half duplex error state handling */ -#define CAN_ISOTP_FORCE_TXSTMIN 0x080/* ignore stmin from received FC */ -#define CAN_ISOTP_FORCE_RXSTMIN 0x100/* ignore CFs depending on rx stmin */ -#define CAN_ISOTP_RX_EXT_ADDR 0x200/* different rx extended addressing */ -#define CAN_ISOTP_WAIT_TX_DONE 0x400/* wait for tx completion */ -#define CAN_ISOTP_SF_BROADCAST 0x800/* 1-to-N functional addressing */ +#define CAN_ISOTP_LISTEN_MODE 0x0001/* listen only (do not send FC) */ +#define CAN_ISOTP_EXTEND_ADDR 0x0002/* enable extended addressing */ +#define CAN_ISOTP_TX_PADDING 0x0004/* enable CAN frame padding tx path */ +#define CAN_ISOTP_RX_PADDING 0x0008/* enable CAN frame padding rx path */ +#define CAN_ISOTP_CHK_PAD_LEN 0x0010/* check received CAN frame padding */ +#define CAN_ISOTP_CHK_PAD_DATA 0x0020/* check received CAN frame padding */ +#define CAN_ISOTP_HALF_DUPLEX 0x0040/* half duplex error state handling */ +#define CAN_ISOTP_FORCE_TXSTMIN 0x0080/* ignore stmin from received FC */ +#define CAN_ISOTP_FORCE_RXSTMIN 0x0100/* ignore CFs depending on rx stmin */ +#define CAN_ISOTP_RX_EXT_ADDR 0x0200/* different rx extended addressing */ +#define CAN_ISOTP_WAIT_TX_DONE 0x0400/* wait for tx completion */ +#define CAN_ISOTP_SF_BROADCAST 0x0800/* 1-to-N functional addressing */ +#define CAN_ISOTP_CF_BROADCAST 0x1000/* 1-to-N transmission w/o FC */ /* protocol machine default values */ #define CAN_ISOTP_DEFAULT_FLAGS 0#define CAN_ISOTP_DEFAULT_EXT_ADDRESS 0x00
net/can/isotp.c +334 -161
898 lines not on this page · raw message
Signature · 1 line
2.34.1
kernel test robot
build botFYI: kernel test robot notices the stable kernel rule is not satisfied.
Hi,
Thanks for your patch.
FYI: kernel test robot notices the stable kernel rule is not satisfied.
The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1
Rule: add the tag "Cc: [email protected]" in the sign-off area to have the patch automatically included in the stable tree.
Subject: [PATCH] can: isotp: upgrade 5.10 LTS to latest 6.6 mainline code base
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Greg KH
maintainerQuoted 20 lines · Oliver Hartkopp
The backport of commit
9c5df2f14ee3("can: isotp:isotp_ops: fixpoll()to not report false EPOLLOUT events") introduced a new regression where the fix could potentially introduce new side effects.To reduce the risk of other unmet dependencies and missing fixes and checks the latest mainline code base is ported back to the 5.10 LTS tree.
To meet the former Linux 5.10 API these commits have been reverted:
e3ae2365efc1("net: sock: introducesk_error_report")f4b41f062c42("net: remove noblock parameter fromskb_recv_datagram()")96a7457a14d9("can: skb: unify skb CAN frame identification helpers")dc97391e6610("sock: Remove ->sendpage*() in favour ofsendmsg(MSG_SPLICE_PAGES)")0145462fc802("can: isotp:isotp_recvmsg(): usesock_recv_cmsgs()to getSOCK_RXQ_OVFLinfos")New features and communication stability measures:
9f39d36530e5("can: isotp: add support for transmission without flow control")96d1c81e6a04("can: isotp: add module parameter for maximum pdu size")4b7fe92c0690("can: isotp: add local echo tx processing for consecutive frames")530e0d46c613("can: isotp: set default value forN_Asto 50 micro seconds")
Quoted 7 lines
And various sanity checks, fixes and improved return values.
Signed-off-by Oliver Hartkopp <[email protected]>--- include/uapi/linux/can/isotp.h | 25 +- net/can/isotp.c | 495 ++++++++++++++++++++++----------- 2 files changed, 347 insertions(+), 173 deletions(-)
Same here, sorry, we need the individual commits.
greg k-h