[PATCH net] dpaa_eth: fix the access method for the dpaa_napi_portal

2021-02-18 Thread Camelia Groza
The current use of container_of is flawed and unnecessary. Obtain the dpaa_napi_portal reference from the private percpu data instead. Fixes: a1e031ffb422 ("dpaa_eth: add XDP_REDIRECT support") Reported-by: Sascha Hauer Signed-off-by: Camelia Groza --- drivers/net/ethernet/free

[PATCH net v2 3/3] dpaa_eth: try to move the data in place for the A050385 erratum

2021-02-04 Thread Camelia Groza
The XDP frame's headroom might be large enough to accommodate the xdpf backpointer as well as shifting the data to an aligned address. Try this first before resorting to allocating a new buffer and copying the data. Suggested-by: Maciej Fijalkowski Signed-off-by: Camelia Groza Acked-by: M

[PATCH net v2 2/3] dpaa_eth: reduce data alignment requirements for the A050385 erratum

2021-02-04 Thread Camelia Groza
These lessened restrictions can increase performance by widening the pool of permitted data alignments and preventing unnecessary realignments. Fixes: ae680bcbd06a ("dpaa_eth: implement the A050385 erratum workaround for XDP") Signed-off-by: Camelia Groza Acked-by: Maciej Fijalkowski -

[PATCH net v2 1/3] dpaa_eth: reserve space for the xdp_frame under the A050385 erratum

2021-02-04 Thread Camelia Groza
might increase in time by aligning the headroom to DPAA_FD_DATA_ALIGNMENT bytes, thus guaranteeing the data's alignment. Fixes: ae680bcbd06a ("dpaa_eth: implement the A050385 erratum workaround for XDP") Signed-off-by: Camelia Groza --- Changes in v2: - guarantee enough tailroom

[PATCH net v2 0/3] dpaa_eth: A050385 erratum workaround fixes under XDP

2021-02-04 Thread Camelia Groza
digit decrease, and to lower double digits in single flow scenarios. Changes in v2: - guarantee enough tailroom is available for the shared_info in 1/3 Camelia Groza (3): dpaa_eth: reserve space for the xdp_frame under the A050385 erratum dpaa_eth: reduce data alignment requirements for the A0

[PATCH net 2/3] dpaa_eth: reduce data alignment requirements for the A050385 erratum

2021-02-02 Thread Camelia Groza
These lessened restrictions can increase performance by widening the pool of permitted data alignments and preventing unnecessary realignments. Fixes: ae680bcbd06a ("dpaa_eth: implement the A050385 erratum workaround for XDP") Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/

[PATCH net 3/3] dpaa_eth: try to move the data in place for the A050385 erratum

2021-02-02 Thread Camelia Groza
The XDP frame's headroom might be large enough to accommodate the xdpf backpointer as well as shifting the data to an aligned address. Try this first before resorting to allocating a new buffer and copying the data. Suggested-by: Maciej Fijalkowski Signed-off-by: Camelia Groza --- ..

[PATCH net 1/3] dpaa_eth: reserve space for the xdp_frame under the A050385 erratum

2021-02-02 Thread Camelia Groza
might increase in time by aligning the headroom to DPAA_FD_DATA_ALIGNMENT bytes, thus guaranteeing the data's alignment. Fixes: ae680bcbd06a ("dpaa_eth: implement the A050385 erratum workaround for XDP") Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/

[PATCH net 0/3] dpaa_eth: A050385 erratum workaround fixes under XDP

2021-02-02 Thread Camelia Groza
digit decrease, and to lower double digits in single flow scenarios. Camelia Groza (3): dpaa_eth: reserve space for the xdp_frame under the A050385 erratum dpaa_eth: reduce data alignment requirements for the A050385 erratum dpaa_eth: try to move the data in place for the A050385 erratum ..

[PATCH net-next v5 5/7] dpaa_eth: add XDP_REDIRECT support

2020-11-25 Thread Camelia Groza
Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 48 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 1 + 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net

[PATCH net-next v5 4/7] dpaa_eth: add XDP_TX support

2020-11-25 Thread Camelia Groza
Bucur Signed-off-by: Camelia Groza --- Changes in v4: - call xdp_rxq_info_is_reg() before unregistering - minor cleanups (remove unneeded variable, print error code) - add more details in the commit message - did not call qman_destroy_fq() in case of xdp_rxq_info_reg() failure since it would lead

[PATCH net-next v5 2/7] dpaa_eth: add basic XDP support

2020-11-25 Thread Camelia Groza
on up the stack. Scatter/Gather frames are dropped when XDP is enabled. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- Changes in v2: - warn only once if extracting the timestamp from a received frame fails Changes in v3: - drop received S/G frames when XDP is enabled Changes

[PATCH net-next v5 7/7] dpaa_eth: implement the A050385 erratum workaround for XDP

2020-11-25 Thread Camelia Groza
m for the xdpf backpointer. Disable the metadata support since the information can be lost. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- Changes in v5: - reduce the impact of the A050385 erratum workaround code on non-erratum platforms drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

[PATCH net-next v5 3/7] dpaa_eth: limit the possible MTU range when XDP is enabled

2020-11-25 Thread Camelia Groza
Implement the ndo_change_mtu callback to prevent users from setting an MTU that would permit processing of S/G frames. The maximum MTU size is dependent on the buffer size. Reviewed-by: Maciej Fijalkowski Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale

[PATCH net-next v5 6/7] dpaa_eth: rename current skb A050385 erratum workaround

2020-11-25 Thread Camelia Groza
Explicitly point that the current workaround addresses skbs. This change is in preparation for adding a workaround for XDP scenarios. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH net-next v5 1/7] dpaa_eth: add struct for software backpointers

2020-11-25 Thread Camelia Groza
We maintain an skb backpointer in the software annotations area of Tx frames. Introduce a structure for explicit handling. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 16 +--- drivers/net/ethernet/freescale/dpaa

[PATCH net-next v5 0/7] dpaa_eth: add XDP support

2020-11-25 Thread Camelia Groza
50385 erratum workaround code on non-erratum platforms in 7/7 Camelia Groza (7): dpaa_eth: add struct for software backpointers dpaa_eth: add basic XDP support dpaa_eth: limit the possible MTU range when XDP is enabled dpaa_eth: add XDP_TX support dpaa_eth: add XDP_REDIRECT support dpaa_eth: r

[PATCH net-next v4 7/7] dpaa_eth: implement the A050385 erratum workaround for XDP

2020-11-23 Thread Camelia Groza
m for the xdpf backpointer. Disable the metadata support since the information can be lost. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 82 +- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH net-next v4 4/7] dpaa_eth: add XDP_TX support

2020-11-23 Thread Camelia Groza
the buffer when it returns to the driver on the TX confirmation path. The frame queues are shared with the netstack. This approach will be reused for XDP REDIRECT. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- Changes in v4: - call xdp_rxq_info_is_reg() before unregistering - minor

[PATCH net-next v4 2/7] dpaa_eth: add basic XDP support

2020-11-23 Thread Camelia Groza
on up the stack. Scatter/Gather frames are dropped when XDP is enabled. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- Changes in v2: - warn only once if extracting the timestamp from a received frame fails Changes in v3: - drop received S/G frames when XDP is enabled Changes

[PATCH net-next v4 3/7] dpaa_eth: limit the possible MTU range when XDP is enabled

2020-11-23 Thread Camelia Groza
Implement the ndo_change_mtu callback to prevent users from setting an MTU that would permit processing of S/G frames. The maximum MTU size is dependent on the buffer size. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 40

[PATCH net-next v4 5/7] dpaa_eth: add XDP_REDIRECT support

2020-11-23 Thread Camelia Groza
After transmission, the frame is returned on confirmation queues for cleanup. For this, store a backpointer to the xdp_frame in the private reserved area at the start of the TX buffer. No TX batching support is implemented at this time. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza

[PATCH net-next v4 6/7] dpaa_eth: rename current skb A050385 erratum workaround

2020-11-23 Thread Camelia Groza
Explicitly point that the current workaround addresses skbs. This change is in preparation for adding a workaround for XDP scenarios. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH net-next v4 1/7] dpaa_eth: add struct for software backpointers

2020-11-23 Thread Camelia Groza
We maintain an skb backpointer in the software annotations area of Tx frames. Introduce a structure for explicit handling. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 16 +--- drivers/net/ethernet/freescale/dpaa

[PATCH net-next v4 0/7] dpaa_eth: add XDP support

2020-11-23 Thread Camelia Groza
d not call qman_destroy_fq() in case of xdp_rxq_info_reg() failure since it would lead to a double free of the fq resources in 4/7 Camelia Groza (7): dpaa_eth: add struct for software backpointers dpaa_eth: add basic XDP support dpaa_eth: limit the possible MTU range when XDP is enabled dpa

[PATCH net-next v3 7/7] dpaa_eth: implement the A050385 erratum workaround for XDP

2020-11-19 Thread Camelia Groza
m for the xdpf backpointer. Disable the metadata support since the information can be lost. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 82 +- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH net-next v3 6/7] dpaa_eth: rename current skb A050385 erratum workaround

2020-11-19 Thread Camelia Groza
Explicitly point that the current workaround addresses skbs. This change is in preparation for adding a workaround for XDP scenarios. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH net-next v3 5/7] dpaa_eth: add XDP_REDIRECT support

2020-11-19 Thread Camelia Groza
After transmission, the frame is returned on confirmation queues for cleanup. For this, store a backpointer to the xdp_frame in the private reserved area at the start of the TX buffer. No TX batching support is implemented at this time. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza

[PATCH net-next v3 4/7] dpaa_eth: add XDP_TX support

2020-11-19 Thread Camelia Groza
Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 129 - drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 2 + 2 files changed, 126 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b

[PATCH net-next v3 3/7] dpaa_eth: limit the possible MTU range when XDP is enabled

2020-11-19 Thread Camelia Groza
Implement the ndo_change_mtu callback to prevent users from setting an MTU that would permit processing of S/G frames. The maximum MTU size is dependent on the buffer size. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 32

[PATCH net-next v3 2/7] dpaa_eth: add basic XDP support

2020-11-19 Thread Camelia Groza
on up the stack. Scatter/Gather frames are dropped when XDP is enabled. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- Changes in v2: - warn only once if extracting the timestamp from a received frame fails Changes in v3: - drop received S/G frames when XDP is enabled drivers/net/eth

[PATCH net-next v3 1/7] dpaa_eth: add struct for software backpointers

2020-11-19 Thread Camelia Groza
We maintain an skb backpointer in the software annotations area of Tx frames. Introduce a structure for explicit handling. Acked-by: Madalin Bucur Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 16 +--- drivers/net/ethernet/freescale/dpaa

[PATCH net-next v3 0/7] dpaa_eth: add XDP support

2020-11-19 Thread Camelia Groza
n the buffer for clean-up on confirmation in a newly created structure for software annotations. Changes in v2: - warn only once if extracting the timestamp from a received frame fails in 2/7 Changes in v3: - drop received S/G frames when XDP is enabled in 2/7 Camelia Groza (7): dpaa_eth

[PATCH net-next v2 0/7] dpaa_eth: add XDP support

2020-11-16 Thread Camelia Groza
n the buffer for clean-up on confirmation in a newly created structure for software annotations. Changes in v2: - warn only once if extracting the timestamp from a received frame fails in 2/7 Camelia Groza (7): dpaa_eth: add struct for software backpointers dpaa_eth: add basic XDP su

[PATCH net-next v2 2/7] dpaa_eth: add basic XDP support

2020-11-16 Thread Camelia Groza
on up the stack. Signed-off-by: Camelia Groza --- Changes in v2: - warn only once if extracting the timestamp from a received frame fails drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 148 ++--- drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 2 + 2 files changed

[PATCH net-next v2 5/7] dpaa_eth: add XDP_REDIRECT support

2020-11-16 Thread Camelia Groza
After transmission, the frame is returned on confirmation queues for cleanup. For this, store a backpointer to the xdp_frame in the private reserved area at the start of the TX buffer. No TX batching support is implemented at this time. Signed-off-by: Camelia Groza --- drivers/net/ethernet

[PATCH net-next v2 3/7] dpaa_eth: limit the possible MTU range when XDP is enabled

2020-11-16 Thread Camelia Groza
Implement the ndo_change_mtu callback to prevent users from setting an MTU that would permit processing of S/G frames. The maximum MTU size is dependent on the buffer size. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 32 -- 1 file

[PATCH net-next v2 4/7] dpaa_eth: add XDP_TX support

2020-11-16 Thread Camelia Groza
: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 129 - drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 2 + 2 files changed, 126 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale

[PATCH net-next v2 7/7] dpaa_eth: implement the A050385 erratum workaround for XDP

2020-11-16 Thread Camelia Groza
m for the xdpf backpointer. Disable the metadata support since the information can be lost. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 82 +- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale

[PATCH net-next v2 6/7] dpaa_eth: rename current skb A050385 erratum workaround

2020-11-16 Thread Camelia Groza
Explicitly point that the current workaround addresses skbs. This change is in preparation for adding a workaround for XDP scenarios. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH net-next v2 1/7] dpaa_eth: add struct for software backpointers

2020-11-16 Thread Camelia Groza
We maintain an skb backpointer in the software annotations area of Tx frames. Introduce a structure for explicit handling. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 16 +--- drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 8 2 files

[PATCH net-next 7/7] dpaa_eth: implement the A050385 erratum workaround for XDP

2020-11-12 Thread Camelia Groza
m for the xdpf backpointer. Disable the metadata support since the information can be lost. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 82 +- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale

[PATCH net-next 5/7] dpaa_eth: add XDP_REDIRECT support

2020-11-12 Thread Camelia Groza
After transmission, the frame is returned on confirmation queues for cleanup. For this, store a backpointer to the xdp_frame in the private reserved area at the start of the TX buffer. No TX batching support is implemented at this time. Signed-off-by: Camelia Groza --- drivers/net/ethernet

[PATCH net-next 4/7] dpaa_eth: add XDP_TX support

2020-11-12 Thread Camelia Groza
: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 129 - drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 2 + 2 files changed, 126 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale

[PATCH net-next 3/7] dpaa_eth: limit the possible MTU range when XDP is enabled

2020-11-12 Thread Camelia Groza
Implement the ndo_change_mtu callback to prevent users from setting an MTU that would permit processing of S/G frames. The maximum MTU size is dependent on the buffer size. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 32 -- 1 file

[PATCH net-next 1/7] dpaa_eth: add struct for software backpointers

2020-11-12 Thread Camelia Groza
We maintain an skb backpointer in the software annotations area of Tx frames. Introduce a structure for explicit handling. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 16 +--- drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 8 2 files

[PATCH net-next 6/7] dpaa_eth: rename current skb A050385 erratum workaround

2020-11-12 Thread Camelia Groza
Explicitly point that the current workaround addresses skbs. This change is in preparation for adding a workaround for XDP scenarios. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH net-next 2/7] dpaa_eth: add basic XDP support

2020-11-12 Thread Camelia Groza
on up the stack. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 148 ++--- drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 2 + 2 files changed, 134 insertions(+), 16 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth

[PATCH net-next 0/7] dpaa_eth: add XDP support

2020-11-12 Thread Camelia Groza
n the buffer for clean-up on confirmation in a newly created structure for software annotations. Camelia Groza (7): dpaa_eth: add struct for software backpointers dpaa_eth: add basic XDP support dpaa_eth: limit the possible MTU range when XDP is enabled dpaa_eth: add XDP_TX support dpa

[PATCH net v3 1/2] dpaa_eth: update the buffer layout for non-A050385 erratum scenarios

2020-11-02 Thread Camelia Groza
maximum linear frame size is increased by 128 bytes for non-erratum arm64 platforms. Cleanup the hardware annotations header defines in the process. Fixes: 3c68b8fffb48 ("dpaa_eth: FMan erratum A050385 workaround") Signed-off-by: Camelia Groza --- Changes in v3: - refactor defines f

[PATCH net v3 0/2] dpaa_eth: buffer layout fixes

2020-11-02 Thread Camelia Groza
in 1/2 - add more details on the user impact in 1/2 - remove unnecessary inline identifier in 2/2 Changes in v2: - make the returned value for TX ports explicit in 2/2 - simplify the buf_layout reference in 2/2 Camelia Groza (2): dpaa_eth: update the buffer layout for non-A050385 erratum

[PATCH net v3 2/2] dpaa_eth: fix the RX headroom size alignment

2020-11-02 Thread Camelia Groza
a_eth: FMan erratum A050385 workaround") Acked-by: Willem de Bruijn Signed-off-by: Camelia Groza --- Changes in v3: - remove the unnecessary inline identifier Changes in v2: - make the returned value for TX ports explicit - simplify the buf_layout reference drivers/net/ethernet/freescale/dpaa/

[PATCH net v2 2/2] dpaa_eth: fix the RX headroom size alignment

2020-10-28 Thread Camelia Groza
a_eth: FMan erratum A050385 workaround") Signed-off-by: Camelia Groza --- Changes in v2: - make the returned value for TX ports explicit - simplify the buf_layout reference drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) di

[PATCH net v2 0/2] dpaa_eth: buffer layout fixes

2020-10-28 Thread Camelia Groza
ports explicit in 2/2 - simplify the buf_layout reference in 2/2 Camelia Groza (2): dpaa_eth: update the buffer layout for non-A050385 erratum scenarios dpaa_eth: fix the RX headroom size alignment drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 20 +--- 1 file changed, 13

[PATCH net v2 1/2] dpaa_eth: update the buffer layout for non-A050385 erratum scenarios

2020-10-28 Thread Camelia Groza
round") Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 06cc863..1aac0b6 100644 --- a/d

[PATCH net 0/2] dpaa_eth: buffer layout fixes

2020-10-27 Thread Camelia Groza
The patches are related to the software workaround for the A050385 erratum. The first patch ensures optimal buffer usage for non-erratum scenarios. The second patch fixes a currently inconsequential discrepancy between the FMan and Ethernet drivers. Camelia Groza (2): dpaa_eth: update the

[PATCH net 1/2] dpaa_eth: update the buffer layout for non-A050385 erratum scenarios

2020-10-27 Thread Camelia Groza
round") Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 06cc863..1aac0b6 100644 --- a/d

[PATCH net 2/2] dpaa_eth: fix the RX headroom size alignment

2020-10-27 Thread Camelia Groza
a_eth: FMan erratum A050385 workaround") Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_e

[PATCH net] net: phy: add missing phy driver features

2019-01-17 Thread Camelia Groza
The phy drivers for CS4340 and TN2020 are missing their features attributes. Add them. Fixes: 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode bitmap") Reported-by: Scott Wood Signed-off-by: Camelia Groza --- This patch should be merged to 4.20 stable. --- d

[PATCH net v2] net: phy: phy driver features are mandatory

2019-01-17 Thread Camelia Groza
atures u32 with link_mode bitmap") Reported-by: Scott Wood Signed-off-by: Camelia Groza --- v2: Print the name of the driver that has missing features. This patch should be merged to 4.20 stable. --- drivers/net/phy/phy_device.c | 5 + include/linux/phy.h | 4 ++-- 2 files change

[PATCH net] net: phy: phy driver features are mandatory

2019-01-15 Thread Camelia Groza
atures u32 with link_mode bitmap") Reported-by: Scott Wood Signed-off-by: Camelia Groza --- This patch should be merged to 4.20 stable. --- drivers/net/phy/phy_device.c | 3 +++ include/linux/phy.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy

[PATCH net] net: phy: guard against accessing a NULL features bitmap

2019-01-11 Thread Camelia Groza
Since phy driver features became a link_mode bitmap, phy drivers that don't have a list of features configured will cause the kernel to crash when probed. Fixes: 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode bitmap") Reported-by: Scott Wood Signed-off-by