net: arp: Fix issue with compiler optimization on Quark SE x86
net: arp: Fix issue with compiler optimization on Quark SE x86

On Quark SE x86 core, the usage of the inline funtion: net_nbuf_family
is optimized by the compiler in a way that the ARP verification
of the protocol family fails. This leads the native stack to never
respond to ARP requests.

This commit fixes the issue by recoding the verification flow to get
the family value before the evaluation.

Change-Id: I666d29dff770a3df1a819c4396027e907b137297
Signed-off-by: Juan Manuel Cruz <401262dbcdbf546287a792798bc41d7c004713b7@intel.com>

nashif/zephyr,erwango/zephyr,galak/zephyr,fbsder/zephyr,runchip/zephyr-cc3220,bigdinotech/zephyr,erwango/zephyr,bigdinotech/zephyr,pklazy/zephyr,mbolivar/zephyr,tidyjiang8/zephyr-doc,Vudentz/zephyr,Vudentz/zephyr,runchip/zephyr-cc3200,GiulianoFranchetto/zephyr,ldts/zephyr,runchip/zephyr-cc3200,sharronliu/zephyr,fbsder/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,kraj/zephyr,rsalveti/zephyr,fbsder/zephyr,zephyrproject-rtos/zephyr,kraj/zephyr,kraj/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,erwango/zephyr,fbsder/zephyr,punitvara/zephyr,kraj/zephyr,punitvara/zephyr,bboozzoo/zephyr,bigdinotech/zephyr,finikorg/zephyr,fractalclone/zephyr-riscv,bboozzoo/zephyr,kraj/zephyr,runchip/zephyr-cc3220,nashif/zephyr,ldts/zephyr,finikorg/zephyr,sharronliu/zephyr,erwango/zephyr,tidyjiang8/zephyr-doc,sharronliu/zephyr,nashif/zephyr,ldts/zephyr,Vudentz/zephyr,aceofall/zephyr-iotos,finikorg/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,GiulianoFranchetto/zephyr,holtmann/zephyr,runchip/zephyr-cc3200,bboozzoo/zephyr,fractalclone/zephyr-riscv,fbsder/zephyr,zephyriot/zephyr,holtmann/zephyr,runchip/zephyr-cc3220,pklazy/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,explora26/zephyr,zephyriot/zephyr,pklazy/zephyr,fractalclone/zephyr-riscv,bigdinotech/zephyr,galak/zephyr,zephyriot/zephyr,Vudentz/zephyr,rsalveti/zephyr,mbolivar/zephyr,runchip/zephyr-cc3220,pklazy/zephyr,galak/zephyr,explora26/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,fractalclone/zephyr-riscv,aceofall/zephyr-iotos,rsalveti/zephyr,explora26/zephyr,holtmann/zephyr,bboozzoo/zephyr,sharronliu/zephyr,punitvara/zephyr,runchip/zephyr-cc3200,bigdinotech/zephyr,zephyriot/zephyr,fractalclone/zephyr-riscv,punitvara/zephyr,rsalveti/zephyr,punitvara/zephyr,nashif/zephyr,nashif/zephyr,bboozzoo/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,runchip/zephyr-cc3220,tidyjiang8/zephyr-doc,explora26/zephyr,GiulianoFranchetto/zephyr,pklazy/zephyr,holtmann/zephyr,erwango/zephyr,runchip/zephyr-cc3200,finikorg/zephyr,tidyjiang8/zephyr-doc,mbolivar/zephyr,tidyjiang8/zephyr-doc,rsalveti/zephyr,zephyriot/zephyr,sharronliu/zephyr