]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'nfp-add-flower-app-with-representors'
authorDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:42:09 +0000 (11:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:42:09 +0000 (11:42 -0400)
commit14ac6144f0284a6f0738563e4416d95a555f6919
tree3ec952e7b6406a110428dbfd37994ef230a601b4
parentfe50dd613da54b5f79f18c47b28d2224724e54a8
parent8528ec5c0e0698b39cfa2eaa4898ff028387deef
Merge branch 'nfp-add-flower-app-with-representors'

Simon Horman says:

====================
nfp: add flower app with representors

this series adds a flower app to the NFP driver.
It initialises four types of netdevs:

* PF netdev - lower-device for communication of packets to device
* PF representor netdev
* VF representor netdevs
* Phys port representor netdevs

The PF netdev acts as a lower-device which sends and receives packets to
and from the firmware. The representors act as upper-devices. For TX
representors attach a metadata dst to the skb which is used by the PF
netdev to prepend metadata to the packet before forwarding the firmware. On
RX the PF netdev looks up the representor based on the prepended metadata
received from the firmware and forwards the skb to the representor after
removing the metadata.

Control queues are used to send and receive control messages which are
used to communicate configuration information with the firmware. These
are in separate vNIC to the queues belonging to the PF netdev. The control
queues are not exposed to use-space via a netdev or any other means.

The first 9 patches of this series provide app-independent infrastructure
to instantiate representors and the remaining 3 patches provide an app
which uses this infrastructure.

As the name implies this app is targeted at providing offload of TC flower.
Flower offload - allowing classifiers to be attached to representor netdevs
- is intended to be provided by follow-up patches at which point it will
become the dominant feature of the app.

Minor changes since v2 noted in changelogs of individual patches.
Review of v1 and v2 of this patchset have been addressed either
through discussion on-list or changes in this patchset.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>