]> git.proxmox.com Git - ovs.git/commit - lib/netdev-dpdk.c
netdev-dpdk: Refactor netdev_dpdk structure.
authorBhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Sun, 1 Oct 2017 07:57:37 +0000 (08:57 +0100)
committerBen Pfaff <blp@ovn.org>
Fri, 3 Nov 2017 20:36:53 +0000 (13:36 -0700)
commit23d4d53f146d5ecb9aa8e34034125d00914f4614
treeb36feee51b4ce4d45c5eebc27408d9ae00113804
parenta807c15796ddc43ba1ffb2a6b0bd2ad4e2b73941
netdev-dpdk: Refactor netdev_dpdk structure.

This commit introduces below changes to netdev_dpdk structure.

- Mark cachelines and reorder few member variables.
- Maintain the grouping of related member variables.
- Add comment on the information on pad bytes where ever appropriate, so
  new members can be introduced in the future to fill the gaps.

  Below is how this structure looks with this commit.

                  Member                    size

         OVS_CACHE_LINE_MARKER cacheline0;
             dpdk_port_t port_id;            1
             bool attached;                  1
             ...

         OVS_CACHE_LINE_MARKER cacheline1;
             struct ovs_mutex;              48
             struct dpdk_mp *dpdk_mp;        8
             ...

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-dpdk.c