[Bridge] [PATCH iproute2-next 2/2] treewide: use configured value as the default color output

2023-09-18 Thread Andrea Claudi
With Makefile providing -DCONF_COLOR, we can use its value as the default color output. This effectively allow users and packagers to define a default for the color output feature without using shell aliases, and with minimum code impact. Signed-off-by: Andrea Claudi --- bridge/bridge.c | 3

[Bridge] [PATCH iproute2-next 1/2] configure: add the --color option

2023-09-18 Thread Andrea Claudi
This commit allows users/packagers to choose a default for the color output feature provided by some iproute2 tools. The configure script option is documented in the script itself and it is pretty much self-explanatory. The default value is set to "never" to avoid changes to the current ip, tc,

[Bridge] [PATCH iproute2-next 0/2] configure: add support for color

2023-09-18 Thread Andrea Claudi
This series add support for the color parameter in iproute2 configure script. The idea is to make it possible for iproute2 users and packagers to set a default value for the color option different from the current one, COLOR_OPT_NEVER, while maintaining the current default behaviour. Patch 1 add

Re: [Bridge] [PATCH AUTOSEL 4.14 6/8] netfilter: ebtables: fix fortify warnings in size_entry_mwt()

2023-09-18 Thread Pavel Machek
Hi! > [ Upstream commit a7ed3465daa240bdf01a5420f64336fee879c09d ] > > When compiling with gcc 13 and CONFIG_FORTIFY_SOURCE=y, the following > warning appears: > > In function ‘fortify_memcpy_chk’, > inlined from ‘size_entry_mwt’ at net/bridge/netfilter/ebtables.c:2118:2: >

Re: [Bridge] [PATCH net] net: bridge: use DEV_STATS_INC()

2023-09-18 Thread Nikolay Aleksandrov
On 9/18/23 12:13, Eric Dumazet wrote: syzbot/KCSAN reported data-races in br_handle_frame_finish() [1] This function can run from multiple cpus without mutual exclusion. Adopt SMP safe DEV_STATS_INC() to update dev->stats fields. Handles updates to dev->stats.tx_dropped while we are at it.

[Bridge] [PATCH net] net: bridge: use DEV_STATS_INC()

2023-09-18 Thread Eric Dumazet via Bridge
syzbot/KCSAN reported data-races in br_handle_frame_finish() [1] This function can run from multiple cpus without mutual exclusion. Adopt SMP safe DEV_STATS_INC() to update dev->stats fields. Handles updates to dev->stats.tx_dropped while we are at it. [1] BUG: KCSAN: data-race in