Re: [dpdk-dev] [RFC v2 6/7] net/af_xdp: load BPF file

2018-05-09 Thread Björn Töpel
2018-03-09 0:15 GMT+01:00 Stephen Hemminger : > On Thu, 8 Mar 2018 21:52:48 +0800 > Qi Zhang wrote: > >> +struct bpf_insn prog[] = { >> + { >> + .code = 0x85, //call imm >> + .dst_reg = 0, >> + .src_reg = 0, >> + .off = 0, >> + .imm

[dpdk-dev] [PATCH] i40evf: Ignore disabled HW CRC strip for Linux PF hosts

2016-04-14 Thread Björn Töpel
On Linux PF hosts, the VF has no means of changing the HW CRC strip setting for a RX queue. It's implicitly enabled. This patch ignores, and warns, if HW CRC stripping was disabled. Signed-off-by: Bj?rn T?pel --- drivers/net/i40e/i40e_ethdev_vf.c | 15 +++ 1 file changed, 15 inserti

[dpdk-dev] [PATCH v2] i40evf: Report error if HW CRC strip is disabled for Linux PF hosts

2016-04-21 Thread Björn Töpel
On Linux PF hosts, the VF has no means of changing the HW CRC strip setting for a RX queue. It's implicitly enabled. This patch checks if the host is running a Linux PF kernel driver, and returns an error, if HW CRC stripping was disabled. Signed-off-by: Bj?rn T?pel --- drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH v3] i40evf: Report error if HW CRC strip is disabled for non-DPDK PF hosts

2016-04-22 Thread Björn Töpel
On hosts running a non-DPDK PF driver, the VF has no means of changing the HW CRC strip setting for a RX queue. It's implicitly enabled. This patch checks if the host is running a non-DPDK PF kernel driver, and returns an error, if HW CRC stripping was disabled. Signed-off-by: Bj?rn T?pel --- d

[dpdk-dev] l3fwd can't launch on VF when we use i40e

2016-08-10 Thread Björn Töpel
Firstly, sorry about the late reply. > From my view, crc-strip is not a "MUST" check for the port start. We can > configure the value after > the port start. > Any thoughts? >From my perspective, a non-supported configuration should return an error code to the API user. > Do you know is there a

[dpdk-dev] [PATCH] examples/l3fwd: force CRC stripping for i40evf

2016-11-09 Thread Björn Töpel
Commit 1bbcc5d21129 ("i40evf: report error for unsupported CRC stripping config") broke l3fwd, since it was forcing that CRC was kept. Now, if i40evf is running, CRC stripping will be enabled. Signed-off-by: Bj?rn T?pel --- examples/l3fwd/main.c | 9 - 1 file changed, 8 insertions(+), 1

[dpdk-dev] [PATCH] examples/l3fwd: force CRC stripping for i40evf

2016-11-09 Thread Björn Töpel
> Thanks for raising the issue. It is completely defeating the generic > ethdev API. We must not have different behaviours depending of the > driver. Why it cannot be fixed in the driver? I should probably refer to the thread, where the concern was raised: http://dpdk.org/ml/archives/dev/2016-July

[dpdk-dev] [PATCH] examples/l3fwd: force CRC stripping for i40evf

2016-11-09 Thread Björn Töpel
Adding Helin to the conversation. > That's a common problem across Intel VF devices. Bothe igb and ixgbe > overcomes that problem just by forcing ' rxmode.hw_strip_crc = 1;' at > PMD itself: [...] > Wonder, can't i40e VF do the same? Right, however, and this (silent failure) approach was reject

[dpdk-dev] [PATCH] examples/l3fwd: force CRC stripping for i40evf

2016-11-09 Thread Björn Töpel
>> Correct, so the broader question would be "what is the correct >> behavior for an example application, when a port configuration >> isn't supported by the hardware?". >> >> My stand, FWIW, is that igb and ixgbe should have the same >> semantics as i40e currently has, i.e. return an error to the

[dpdk-dev] [PATCH] examples/l3fwd: force CRC stripping for i40evf

2016-11-09 Thread Björn Töpel
Bj?rn/Konstantin wrote: >> Finally, why doesn't l3fwd have the CRC stripped? > > I don?t know any good reason for that for l3fwd or any other sample > app. I think it is just a 'historical' reason. Ok! Then I'd suggest changing the l3fwd default to actually *strip* CRC instead of not doing it. Lei

[dpdk-dev] [PATCH] examples/l3fwd: force CRC stripping for i40evf

2016-11-10 Thread Björn Töpel
Lei wrote: > I'm testing some DPDK sample under VMware. During the testing work, I > find l3fwd+ ixgbe vf can work ,but L3fwd + i40evf can't work. So I > reported this issue to Bjorn. From my perspective, if can add new > parameter in l3fwd sample like what have already don?t in testpmd > "c

[dpdk-dev] [PATCH] examples/l3fwd: force CRC stripping for i40evf

2016-11-10 Thread Björn Töpel
Thomas wrote: > Just to make it sure, you mean returning an error in the driver when > a configuration cannot be applied, right? Yes, as in 1bbcc5d21129 ("i40evf: report error for unsupported CRC stripping config"), where -EINVAL is returned. Bj?rn