Commit 34d8c91
net/mlx5e: DMA-sync earlier in mlx5e_skb_from_cqe_mpwrq_nonlinear
Doing the call to dma_sync_single_for_cpu() earlier will allow us to
adjust headlen based on the actual size of the protocol headers.
Doing this earlier means that we don't need to call
mlx5e_copy_skb_header() anymore and rather can call
skb_copy_to_linear_data() directly.
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Christoph Paasch <cpaasch@openai.com>
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260601061522.398044-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent cbadf60 commit 34d8c91
1 file changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1923 | 1923 | | |
1924 | 1924 | | |
1925 | 1925 | | |
| 1926 | + | |
1926 | 1927 | | |
1927 | 1928 | | |
1928 | 1929 | | |
1929 | 1930 | | |
1930 | | - | |
1931 | 1931 | | |
1932 | 1932 | | |
1933 | 1933 | | |
| |||
1940 | 1940 | | |
1941 | 1941 | | |
1942 | 1942 | | |
| 1943 | + | |
| 1944 | + | |
1943 | 1945 | | |
1944 | 1946 | | |
1945 | | - | |
| 1947 | + | |
1946 | 1948 | | |
1947 | 1949 | | |
1948 | 1950 | | |
| |||
1956 | 1958 | | |
1957 | 1959 | | |
1958 | 1960 | | |
| 1961 | + | |
| 1962 | + | |
1959 | 1963 | | |
1960 | 1964 | | |
1961 | 1965 | | |
| |||
1967 | 1971 | | |
1968 | 1972 | | |
1969 | 1973 | | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
1970 | 1979 | | |
1971 | 1980 | | |
1972 | 1981 | | |
| |||
2056 | 2065 | | |
2057 | 2066 | | |
2058 | 2067 | | |
2059 | | - | |
2060 | | - | |
2061 | 2068 | | |
2062 | 2069 | | |
2063 | 2070 | | |
| |||
2071 | 2078 | | |
2072 | 2079 | | |
2073 | 2080 | | |
| 2081 | + | |
2074 | 2082 | | |
2075 | | - | |
2076 | | - | |
2077 | | - | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
2078 | 2086 | | |
2079 | 2087 | | |
2080 | 2088 | | |
| |||
0 commit comments