diff options
| author | Andre Guedes <andre.guedes@intel.com> | 2021-04-23 09:25:48 +0300 |
|---|---|---|
| committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-05-20 20:16:41 +0300 |
| commit | 73a6e3721261524567eb5e319d5dc8e37b5f18dc (patch) | |
| tree | 0f1cde4e121b5f993712b901834c4ddaacfaf5e9 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 0c20f2d29fff7ecd3b2802536d0089ed908304a5 (diff) | |
| download | linux-73a6e3721261524567eb5e319d5dc8e37b5f18dc.tar.xz | |
igc: Refactor __igc_xdp_run_prog()
Refactor __igc_xdp_run_prog() helper from igc_xdp_run_prog(),
preparing the code for AF_XDP zero-copy support which is added
by upcoming patches.
The existing igc_xdp_run_prog() caters to regular XDP rx path
which has to verify if bpf_prog is not NULL. Zero-copy
path assumes that bpf_prog is not NULL and hence this check is
not required. Therefore it makes sense to refactor the common
code into a helper function, to avoid code duplication.
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Signed-off-by: Vedang Patel <vedang.patel@intel.com>
Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
