Re: [PATCH net] net: sched: initialize with 0 before setting erspan md->u

2020-09-14 Thread David Miller
From: Xin Long Date: Sun, 13 Sep 2020 19:43:03 +0800 > In fl_set_erspan_opt(), all bits of erspan md was set 1, as this > function is also used to set opt MASK. However, when setting for > md->u.index for opt VALUE, the rest bits of the union md->u will > be left 1. It would cause to fail the mat

[PATCH net] net: sched: initialize with 0 before setting erspan md->u

2020-09-13 Thread Xin Long
In fl_set_erspan_opt(), all bits of erspan md was set 1, as this function is also used to set opt MASK. However, when setting for md->u.index for opt VALUE, the rest bits of the union md->u will be left 1. It would cause to fail the match of the whole md when version is 1 and only index is set. Th