From mboxrd@z Thu Jan 1 00:00:00 1970 From: G, GurucharanX Date: Thu, 22 Jul 2021 09:55:09 +0000 Subject: [Intel-wired-lan] [PATCH net v2] iavf: Fix ping is lost after untrusted VF had tried to change MAC In-Reply-To: References: <20210628121105.20640-1-mateusz.palczewski@intel.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: > -----Original Message----- > From: Intel-wired-lan On Behalf > Of Mateusz Palczewski > Sent: Monday, June 28, 2021 5:41 PM > To: intel-wired-lan at lists.osuosl.org > Cc: Dziedziuch, SylwesterX ; > Patynowski, PrzemyslawX ; > Palczewski, Mateusz > Subject: [Intel-wired-lan] [PATCH net v2] iavf: Fix ping is lost after > untrusted VF had tried to change MAC > > From: Sylwester Dziedziuch > > Make changes to MAC address dependent on the response of PF. > Disallow changes to hw mac address and mac filter from untrusted VF, > thanks to that ping is not lost if VF tries to change MAC. > Add a new field in iavf_mac_filter, to indicate whether there was > response from PF for given filter. Based on this field pass or discard > the filter. > If untrusted VF tried to change it's address, it's not changed. > Still filter was changed, because of that ping couldn't go through. > > Fixes: c5c922b3e09b ("iavf: fix MAC address setting for VFs when > filter is > rejected") > Signed-off-by: Przemyslaw Patynowski > > Signed-off-by: Sylwester Dziedziuch > Signed-off-by: Mateusz Palczewski > --- > v2: Fixed function names in comments > --- > drivers/net/ethernet/intel/iavf/iavf.h | 1 + > drivers/net/ethernet/intel/iavf/iavf_main.c | 1 + > .../net/ethernet/intel/iavf/iavf_virtchnl.c | 47 ++++++++++++++++++- > 3 files changed, 47 insertions(+), 2 deletions(-) > Tested-by: Gurucharan G A Contingent Worker > at Intel