]> git.baikalelectronics.ru Git - kernel.git/commit
enetc: Add vf to pf messaging support
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Tue, 22 Jan 2019 13:29:56 +0000 (15:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jan 2019 05:55:53 +0000 (21:55 -0800)
commita6076d7e3a670963370b6bd7c5f97bbb1286aed3
tree473bc727fe23719eeb1098db9a5eaf1ebd729dfc
parent77957c14991d7ea381da4656a4df8b152fd8a0e1
enetc: Add vf to pf messaging support

VSIs (VFs) may send a message to the PSI (PF) for general notification
or to gain access to hardware resources which requires host inspection.
These messages may vary in size and are handled as a partition copy
between two memory regions owned by the respective participants.
The PSI will respond with fail or success and a 16-bit message code.
The patch implements the vf to pf messaging mechanism above and, as the
first application making use of this support, it enables the VF to
configure its own primary MAC address.

Signed-off-by: Catalin Horghidan <catalin.horghidan@nxp.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/Makefile
drivers/net/ethernet/freescale/enetc/enetc.h
drivers/net/ethernet/freescale/enetc/enetc_hw.h
drivers/net/ethernet/freescale/enetc/enetc_msg.c [new file with mode: 0644]
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/enetc/enetc_pf.h
drivers/net/ethernet/freescale/enetc/enetc_vf.c