Skip to contentSkip to conversation

bnxt_en: Add XDP support.

PATCH Andy Gospodarek 1 participant 2 messages Jan 31, 2017 – Feb 1, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Alexei Starovoitov
Quoted 4 lines · Michael Chan

The first 8 patches refactor the code (rx/tx code paths and ring logic) and add the basic infrastructure to support XDP. The 9th patch adds basic ndo_xdp to support XDP_DROP and XDP_PASS only. The 10th patch completes the series with XDP_TX.

Looks great.
Could you please share performance numbers ?

I'll post some later today.

Quoted 8 lines

Also please add something like:

  if (prog && prog->xdp_adjust_head) {
          netdev_warn(dev, "Does not support bpf_xdp_adjust_head()\n");
          return -EOPNOTSUPP;

}
unless you plan to add adjut_head support until net-next closes. Note, it's must have for load balancer functionality.

#1 lore raw
Quoted 11 lines · Andy Gospodarek
Quoted 8 lines · Alexei Starovoitov
Quoted 4 lines · Michael Chan

The first 8 patches refactor the code (rx/tx code paths and ring logic) and add the basic infrastructure to support XDP. The 9th patch adds basic ndo_xdp to support XDP_DROP and XDP_PASS only. The 10th patch completes the series with XDP_TX.

Looks great.
Could you please share performance numbers ?

I'll post some later today.

I finally got my system moved around to what I'd hoped would be the right spot in my lab, but the system used for generating the traffic was only able to send 6Mpps with pktgen, so it was not a great test.

My receiving system with i7-6700 CPU @ 3.40GHz seemed to have no issue handling this 6Mpps load -- mpstat showed only one core was ~25% utilitzed with all of that servicing softirqs. The rest of the cores were 100% idle.

I'm going to search for other traffic generation tools/systems to make sure I can get at least line-rate for the 10GbE cards I was using.

Quoted 9 lines
Quoted 9 lines

Also please add something like:

  if (prog && prog->xdp_adjust_head) {
          netdev_warn(dev, "Does not support bpf_xdp_adjust_head()\n");
          return -EOPNOTSUPP;

}
unless you plan to add adjut_head support until net-next closes. Note, it's must have for load balancer functionality.