]> 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)
commit8a3ce24205a79cb561b3e3cd6a0f070074668ad3
tree3ec952e7b6406a110428dbfd37994ef230a601b4
parentf516cfaf8026d2b6875fc2bca952c8ebfa92ef70
parent3100bb37af115bd0cfb3259384ddd1b10d03bd52
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>