aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorStefan Mätje <[email protected]>2024-08-08 18:42:24 +0200
committerMarc Kleine-Budde <[email protected]>2024-08-30 22:40:23 +0200
commit2423cc20087ae9a7b7af575aa62304ef67cad7b6 (patch)
tree55f1e37a19d5c49ff900d9668f896c2261ca44cd /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parentdc2ddcd136fe9b6196a7dd01f75f824beb02d43f (diff)
can: netlink: avoid call to do_set_data_bittiming callback with stale can_priv::ctrlmode
This patch moves the evaluation of data[IFLA_CAN_CTRLMODE] in function can_changelink in front of the evaluation of data[IFLA_CAN_BITTIMING]. This avoids a call to do_set_data_bittiming providing a stale can_priv::ctrlmode with a CAN_CTRLMODE_FD flag not matching the requested state when switching between a CAN Classic and CAN-FD bitrate. In the same manner the evaluation of data[IFLA_CAN_CTRLMODE] in function can_validate is also moved in front of the evaluation of data[IFLA_CAN_BITTIMING]. This is a preparation for patches where the nominal and data bittiming may have interdependencies on the driver side depending on the CAN_CTRLMODE_FD flag state. Signed-off-by: Stefan Mätje <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions