net: stmmac: add dcrs parameter
Subsystems (5)
PATCH 1/1 net: stmmac: add dcrs parameter
This patch add the option to enable DCRS bit in GMAC control register. Default is disabled if snps,dcrs is not defined.
For MII, Carrier Sense (CRS) must be asserted during transmission whereas in RGMII, CRS is not. RGMII does not provide a way to signal loss of carrier during a transmission.
When DCRS bit set high in control register, the MAC transmitter ignore the (G)MII Carrier Sense signal during frame transmission in the half-duplex mode. This request results in no errors generated because of Loss of Carrier or No Carrier during such transmission.
--- Documentation/devicetree/bindings/net/stmmac.txt | 4 ++++ drivers/net/ethernet/stmicro/stmmac/common.h | 3 ++- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 4 +++- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 ++- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 ++ include/linux/stmmac.h | 1 + 6 files changed, 14 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/net/stmmac.txt +4 -0
@@ -39,6 +39,10 @@ Optional properties: further clocks may be specified in derived bindings. - clock-names: One name for each entry in the clocks property, the first one should be "stmmaceth". +- snps,dcrs: Enable DCRS bit in GMAC control register. This DCRS bit makes the + MAC transmitter ignore the (G)MII CRS signal during frame transmission + in the half-duplex mode. This request results in no errors generated + because of Loss of Carrier or No Carrier during such transmission. Examples:
drivers/net/ethernet/stmicro/stmmac/common.h +2 -1
@@ -445,10 +445,11 @@ struct mac_device_info {int multicast_filter_bins;int unicast_filter_entries;int mcast_bits_log2; +int dcrs; };struct mac_device_info *dwmac1000_setup (void __iomem *ioaddr,int mcbins, -int perfect_uc_entries); +int perfect_uc_entries,int dcrs);struct mac_device_info *dwmac100_setup (void __iomem *ioaddr); void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6],
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +3 -1
@@ -37,6 +37,7 @@ static void dwmac1000_core_init(struct mac_device_info *hw, int mtu)void __iomem *ioaddr = hw->pcsr;u32 value =readl (ioaddr +GMAC_CONTROL ); value |=GMAC_CORE_INIT ; + value |= hw->dcrs;if (mtu >1500 ) value |=GMAC_CONTROL_2K ;if (mtu >2000 )
@@ -409,7 +410,7 @@ static const struct stmmac_ops dwmac1000_ops = { };struct mac_device_info *dwmac1000_setup (void __iomem *ioaddr,int mcbins, -int perfect_uc_entries) +int perfect_uc_entries,int dcrs) {struct mac_device_info *mac;u32 hwid =readl (ioaddr +GMAC_VERSION );
@@ -422,6 +423,7 @@ struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr, int mcbins, mac->multicast_filter_bins = mcbins; mac->unicast_filter_entries = perfect_uc_entries; mac->mcast_bits_log2 =0 ; + mac->dcrs = dcrs;if (mac->multicast_filter_bins) mac->mcast_bits_log2 =ilog2 (mac->multicast_filter_bins);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2 -1
@@ -2600,7 +2600,8 @@ static int stmmac_hw_init(struct stmmac_priv *priv) priv->dev->priv_flags |=IFF_UNICAST_FLT ; mac =dwmac1000_setup (priv->ioaddr, priv->plat->multicast_filter_bins, - priv->plat->unicast_filter_entries); + priv->plat->unicast_filter_entries, + priv->plat->dcrs); }else { mac =dwmac100_setup (priv->ioaddr); }
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +2 -0
@@ -227,6 +227,8 @@ static int stmmac_probe_config_dt(struct platform_device *pdev, pr_warn("force_sf_dma_mode is ignored if force_thresh_dma_mode is set."); } + plat->dcrs =of_property_read_bool (np,"snps,dcrs" ); +return 0 ; }#else
include/linux/stmmac.h +1 -0
@@ -114,6 +114,7 @@ struct plat_stmmacenet_data {int maxmtu;int multicast_filter_bins;int unicast_filter_entries; +int dcrs;void (*fix_mac_speed)(void *priv,unsigned int speed);void (*bus_setup)(void __iomem *ioaddr);void *(*setup)(struct platform_device *pdev);
Signature · 1 line
1.8.2.1
Hello
Quoted 11 lines · Ley Foon Tan
This patch add the option to enable DCRS bit in GMAC control register. Default is disabled if snps,dcrs is not defined.
For MII, Carrier Sense (CRS) must be asserted during transmission whereas in RGMII, CRS is not. RGMII does not provide a way to signal loss of carrier during a transmission.
When DCRS bit set high in control register, the MAC transmitter ignore the (G)MII Carrier Sense signal during frame transmission in the half-duplex mode. This request results in no errors generated because of Loss of Carrier or No Carrier during such transmission.
We have to add this fix in the driver. I wonder if we can avoid to have another parameter and just have it set as default
(http://git.stlinux.com/?p=stm/linux-sh4-2.6.32.y.git;a=commit;h=b0b863bf65c36dc593f6b7b4b418394fd880dae2)
Or we could touch this bit according to the link duplex negotiated and the phy mode selected.
peppe
Quoted 112 lines
Signed-off-by Ley Foon Tan <[email protected]>--- Documentation/devicetree/bindings/net/stmmac.txt | 4 ++++ drivers/net/ethernet/stmicro/stmmac/common.h | 3 ++- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 4 +++- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 ++- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 ++ include/linux/stmmac.h | 1 + 6 files changed, 14 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/net/stmmac.txt +4
-0@@ -39,6 +39,10 @@ Optional properties: further clocks may be specified in derived bindings. - clock-names: One name for each entry in the clocks property, the first one should be "stmmaceth". +- snps,dcrs: Enable DCRS bit in GMAC control register. This DCRS bit makes the + MAC transmitter ignore the (G)MII CRS signal during frame transmission + in the half-duplex mode. This request results in no errors generated + because of Loss of Carrier or No Carrier during such transmission. Examples:drivers/net/ethernet/stmicro/stmmac/common.h +2
-1@@ -445,10 +445,11 @@ struct mac_device_info {int multicast_filter_bins;int unicast_filter_entries;int mcast_bits_log2; +int dcrs; };struct mac_device_info *dwmac1000_setup (void __iomem *ioaddr,int mcbins, -int perfect_uc_entries); +int perfect_uc_entries,int dcrs);struct mac_device_info *dwmac100_setup (void __iomem *ioaddr); void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6],drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +3
-1@@ -37,6 +37,7 @@ static void dwmac1000_core_init(struct mac_device_info *hw, int mtu)void __iomem *ioaddr = hw->pcsr;u32 value =readl (ioaddr +GMAC_CONTROL ); value |=GMAC_CORE_INIT ; + value |= hw->dcrs;if (mtu >1500 ) value |=GMAC_CONTROL_2K ;if (mtu >2000 )@@ -409,7 +410,7 @@ static const struct stmmac_ops dwmac1000_ops = { };struct mac_device_info *dwmac1000_setup (void __iomem *ioaddr,int mcbins, -int perfect_uc_entries) +int perfect_uc_entries,int dcrs) {struct mac_device_info *mac;u32 hwid =readl (ioaddr +GMAC_VERSION );@@ -422,6 +423,7 @@ struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr, int mcbins, mac->multicast_filter_bins = mcbins; mac->unicast_filter_entries = perfect_uc_entries; mac->mcast_bits_log2 =0 ; + mac->dcrs = dcrs;if (mac->multicast_filter_bins) mac->mcast_bits_log2 =ilog2 (mac->multicast_filter_bins);drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2
-1@@ -2600,7 +2600,8 @@ static int stmmac_hw_init(struct stmmac_priv *priv) priv->dev->priv_flags |=IFF_UNICAST_FLT ; mac =dwmac1000_setup (priv->ioaddr, priv->plat->multicast_filter_bins, - priv->plat->unicast_filter_entries); + priv->plat->unicast_filter_entries, + priv->plat->dcrs); }else { mac =dwmac100_setup (priv->ioaddr); }drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +2
-0@@ -227,6 +227,8 @@ static int stmmac_probe_config_dt(struct platform_device *pdev, pr_warn("force_sf_dma_mode is ignored if force_thresh_dma_mode is set."); } + plat->dcrs =of_property_read_bool (np,"snps,dcrs" ); +return 0 ; }#else include/linux/stmmac.h +1
-0@@ -114,6 +114,7 @@ struct plat_stmmacenet_data {int maxmtu;int multicast_filter_bins;int unicast_filter_entries; +int dcrs;void (*fix_mac_speed)(void *priv,unsigned int speed);void (*bus_setup)(void __iomem *ioaddr);void *(*setup)(struct platform_device *pdev);
Hi,
Quoted 27 lines · Ley Foon Tan
This patch add the option to enable DCRS bit in GMAC control register. Default is disabled if snps,dcrs is not defined.
For MII, Carrier Sense (CRS) must be asserted during transmission whereas in RGMII, CRS is not. RGMII does not provide a way to signal loss of carrier during a transmission.
When DCRS bit set high in control register, the MAC transmitter ignore the (G)MII Carrier Sense signal during frame transmission in the half-duplex mode. This request results in no errors generated because of Loss of Carrier or No Carrier during such transmission.
Signed-off-by Ley Foon Tan <[email protected]>--- Documentation/devicetree/bindings/net/stmmac.txt | 4 ++++ drivers/net/ethernet/stmicro/stmmac/common.h | 3 ++- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 4 +++- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 ++- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 ++ include/linux/stmmac.h | 1 + 6 files changed, 14 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/net/stmmac.txt +0
-0
Documentation/devicetree/bindings/net/stmmac.txt Optional properties: · line 44
Quoted 6 lines
Documentation/devicetree/bindings/net/stmmac.txt +3
-0@@ -39,6 +39,10 @@ Optional properties: further clocks may be specified in derived bindings. - clock-names: One name for each entry in the clocks property, the first one should be "stmmaceth". +- snps,dcrs: Enable DCRS bit in GMAC control register. This DCRS bit makes the + MAC transmitter ignore the (G)MII CRS signal during frame transmission + in the half-duplex mode. This request results in no errors generated
Since you know this is only required under (G)MII, could you not re-use the "phy-mode" property, instead of adding another one?
Better yet, use the "interface" field in the platform data. This way you'll fix non-DT devices as well. You could then avoid touching the platform driver, and just modify the driver core.
Cheers
ChenYu
Quoted 96 lines
Documentation/devicetree/bindings/net/stmmac.txt +1
-0+ because of Loss of Carrier or No Carrier during such transmission. Examples:drivers/net/ethernet/stmicro/stmmac/common.h +2
-1@@ -445,10 +445,11 @@ struct mac_device_info {int multicast_filter_bins;int unicast_filter_entries;int mcast_bits_log2; +int dcrs; };struct mac_device_info *dwmac1000_setup (void __iomem *ioaddr,int mcbins, -int perfect_uc_entries); +int perfect_uc_entries,int dcrs);struct mac_device_info *dwmac100_setup (void __iomem *ioaddr); void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6],drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +3
-1@@ -37,6 +37,7 @@ static void dwmac1000_core_init(struct mac_device_info *hw, int mtu)void __iomem *ioaddr = hw->pcsr;u32 value =readl (ioaddr +GMAC_CONTROL ); value |=GMAC_CORE_INIT ; + value |= hw->dcrs;if (mtu >1500 ) value |=GMAC_CONTROL_2K ;if (mtu >2000 )@@ -409,7 +410,7 @@ static const struct stmmac_ops dwmac1000_ops = { };struct mac_device_info *dwmac1000_setup (void __iomem *ioaddr,int mcbins, -int perfect_uc_entries) +int perfect_uc_entries,int dcrs) {struct mac_device_info *mac;u32 hwid =readl (ioaddr +GMAC_VERSION );@@ -422,6 +423,7 @@ struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr, int mcbins, mac->multicast_filter_bins = mcbins; mac->unicast_filter_entries = perfect_uc_entries; mac->mcast_bits_log2 =0 ; + mac->dcrs = dcrs;if (mac->multicast_filter_bins) mac->mcast_bits_log2 =ilog2 (mac->multicast_filter_bins);drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2
-1@@ -2600,7 +2600,8 @@ static int stmmac_hw_init(struct stmmac_priv *priv) priv->dev->priv_flags |=IFF_UNICAST_FLT ; mac =dwmac1000_setup (priv->ioaddr, priv->plat->multicast_filter_bins, - priv->plat->unicast_filter_entries); + priv->plat->unicast_filter_entries, + priv->plat->dcrs); }else { mac =dwmac100_setup (priv->ioaddr); }drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +2
-0@@ -227,6 +227,8 @@ static int stmmac_probe_config_dt(struct platform_device *pdev, pr_warn("force_sf_dma_mode is ignored if force_thresh_dma_mode is set."); } + plat->dcrs =of_property_read_bool (np,"snps,dcrs" ); +return 0 ; }#else include/linux/stmmac.h +1
-1@@ -114,6 +114,7 @@ struct plat_stmmacenet_data {int maxmtu;int multicast_filter_bins;int unicast_filter_entries; +int dcrs;void (*fix_mac_speed)(void *priv,unsigned int speed);void (*bus_setup)(void __iomem *ioaddr);void *(*setup)(struct platform_device *pdev); --1.8.2.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 40 lines · Chen-Yu Tsai
Hi,
Quoted 27 lines · Ley Foon Tan
This patch add the option to enable DCRS bit in GMAC control register. Default is disabled if snps,dcrs is not defined.
For MII, Carrier Sense (CRS) must be asserted during transmission whereas in RGMII, CRS is not. RGMII does not provide a way to signal loss of carrier during a transmission.
When DCRS bit set high in control register, the MAC transmitter ignore the (G)MII Carrier Sense signal during frame transmission in the half-duplex mode. This request results in no errors generated because of Loss of Carrier or No Carrier during such transmission.
Signed-off-by Ley Foon Tan <[email protected]>--- Documentation/devicetree/bindings/net/stmmac.txt | 4 ++++ drivers/net/ethernet/stmicro/stmmac/common.h | 3 ++- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 4 +++- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 ++- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 ++ include/linux/stmmac.h | 1 + 6 files changed, 14 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/net/stmmac.txt +0
-0Documentation/devicetree/bindings/net/stmmac.txt Optional properties: · line 44
Quoted 6 lines
Documentation/devicetree/bindings/net/stmmac.txt +3
-0@@ -39,6 +39,10 @@ Optional properties: further clocks may be specified in derived bindings. - clock-names: One name for each entry in the clocks property, the first one should be "stmmaceth". +- snps,dcrs: Enable DCRS bit in GMAC control register. This DCRS bit makes the + MAC transmitter ignore the (G)MII CRS signal during frame transmission + in the half-duplex mode. This request results in no errors generatedSince you know this is only required under (G)MII, could you not re-use the "phy-mode" property, instead of adding another one?
Quoted 3 lines
Better yet, use the "interface" field in the platform data. This way you'll fix non-DT devices as well. You could then avoid touching the platform driver, and just modify the driver core.
yes this is what I asked. Thx ChenYu for the this detail. Ley Foon Tan, could you do that? Let me know
peppe
Quoted 103 lines
Cheers
ChenYuQuoted 96 lines
Documentation/devicetree/bindings/net/stmmac.txt +1
-0+ because of Loss of Carrier or No Carrier during such transmission. Examples:drivers/net/ethernet/stmicro/stmmac/common.h +2
-1@@ -445,10 +445,11 @@ struct mac_device_info {int multicast_filter_bins;int unicast_filter_entries;int mcast_bits_log2; +int dcrs; };struct mac_device_info *dwmac1000_setup (void __iomem *ioaddr,int mcbins, -int perfect_uc_entries); +int perfect_uc_entries,int dcrs);struct mac_device_info *dwmac100_setup (void __iomem *ioaddr); void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6],drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +3
-1@@ -37,6 +37,7 @@ static void dwmac1000_core_init(struct mac_device_info *hw, int mtu)void __iomem *ioaddr = hw->pcsr;u32 value =readl (ioaddr +GMAC_CONTROL ); value |=GMAC_CORE_INIT ; + value |= hw->dcrs;if (mtu >1500 ) value |=GMAC_CONTROL_2K ;if (mtu >2000 )@@ -409,7 +410,7 @@ static const struct stmmac_ops dwmac1000_ops = { };struct mac_device_info *dwmac1000_setup (void __iomem *ioaddr,int mcbins, -int perfect_uc_entries) +int perfect_uc_entries,int dcrs) {struct mac_device_info *mac;u32 hwid =readl (ioaddr +GMAC_VERSION );@@ -422,6 +423,7 @@ struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr, int mcbins, mac->multicast_filter_bins = mcbins; mac->unicast_filter_entries = perfect_uc_entries; mac->mcast_bits_log2 =0 ; + mac->dcrs = dcrs;if (mac->multicast_filter_bins) mac->mcast_bits_log2 =ilog2 (mac->multicast_filter_bins);drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2
-1@@ -2600,7 +2600,8 @@ static int stmmac_hw_init(struct stmmac_priv *priv) priv->dev->priv_flags |=IFF_UNICAST_FLT ; mac =dwmac1000_setup (priv->ioaddr, priv->plat->multicast_filter_bins, - priv->plat->unicast_filter_entries); + priv->plat->unicast_filter_entries, + priv->plat->dcrs); }else { mac =dwmac100_setup (priv->ioaddr); }drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +2
-0@@ -227,6 +227,8 @@ static int stmmac_probe_config_dt(struct platform_device *pdev, pr_warn("force_sf_dma_mode is ignored if force_thresh_dma_mode is set."); } + plat->dcrs =of_property_read_bool (np,"snps,dcrs" ); +return 0 ; }#else include/linux/stmmac.h +1
-1@@ -114,6 +114,7 @@ struct plat_stmmacenet_data {int maxmtu;int multicast_filter_bins;int unicast_filter_entries; +int dcrs;void (*fix_mac_speed)(void *priv,unsigned int speed);void (*bus_setup)(void __iomem *ioaddr);void *(*setup)(struct platform_device *pdev); --1.8.2.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Quoted 4 lines · Giuseppe CAVALLARO
Quoted 3 lines · Chen-Yu Tsai
Hi,
Quoted 8 lines
Quoted 8 lines · Ley Foon Tan
Quoted 7 lines
This patch add the option to enable DCRS bit in GMAC control register. Default is disabled if snps,dcrs is not defined.
For MII, Carrier Sense (CRS) must be asserted during transmission whereas in RGMII, CRS is not. RGMII does not provide a way to signal loss of carrier during a transmission.
While technically true, from a practical point of view, this is only useful if using true half-duplex media (like the now obsolete 10Base2 and 10Base5 - think old school coax with vampire taps).
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
When DCRS bit set high in control register, the MAC transmitter ignore the (G)MII Carrier Sense signal during frame transmission in the half-duplex mode. This request results in no errors generated because of Loss of Carrier or No Carrier during such transmission.
Signed-off-by Ley Foon Tan <[email protected]>---
<snip>
Quoted 11 lines
Quoted 9 lines
Since you know this is only required under (G)MII, could you not re-use the "phy-mode" property, instead of adding another one?
Better yet, use the "interface" field in the platform data. This way you'll
fix non-DT devices as well. You could then avoid touching the platform driver,
and just modify the driver core.
Quoted 6 lines
yes this is what I asked. Thx ChenYu for the this detail. Ley Foon Tan, could you do that? Let me know
peppe
In the Synopsys EMAC case, carrier sense is used to stop transmitting if no carrier is sensed during a transmission. This is only useful if the media in use is true half duplex media (like obsolete 10Base2 or 10Base5). If no one in using true half duplex media, then is it possible to set this disable by default? If we're not sure, then having an option feels like the right thing to do.
Vince
Quoted 50 lines · Vince Bridgers
Hi,
Quoted 4 lines · Giuseppe CAVALLARO
Quoted 3 lines · Chen-Yu Tsai
Hi,
Quoted 8 lines
Quoted 8 lines · Ley Foon Tan
Quoted 7 lines
This patch add the option to enable DCRS bit in GMAC control register. Default is disabled if snps,dcrs is not defined.
For MII, Carrier Sense (CRS) must be asserted during transmission whereas in RGMII, CRS is not. RGMII does not provide a way to signal loss of carrier during a transmission.
While technically true, from a practical point of view, this is only useful if using true half-duplex media (like the now obsolete 10Base2 and 10Base5 - think old school coax with vampire taps).
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
When DCRS bit set high in control register, the MAC transmitter ignore the (G)MII Carrier Sense signal during frame transmission in the half-duplex mode. This request results in no errors generated because of Loss of Carrier or No Carrier during such transmission.
Signed-off-by Ley Foon Tan <[email protected]>---
<snip>
Quoted 11 lines
Quoted 9 lines
Since you know this is only required under (G)MII, could you not re-use the "phy-mode" property, instead of adding another one?
Better yet, use the "interface" field in the platform data. This way you'll
fix non-DT devices as well. You could then avoid touching the platform driver,
and just modify the driver core.Quoted 6 lines
yes this is what I asked. Thx ChenYu for the this detail. Ley Foon Tan, could you do that? Let me know
peppe
Quoted 6 lines
In the Synopsys EMAC case, carrier sense is used to stop transmitting if no carrier is sensed during a transmission. This is only useful if the media in use is true half duplex media (like obsolete 10Base2 or 10Base5). If no one in using true half duplex media, then is it possible to set this disable by default? If we're not sure, then having an option feels like the right thing to do.
Indeed this is what I had done in the patch.
Also in case of carrier sense the frame will be dropped in any case later.
Let me know if you Acked this patch so I will rebase it on net.git and I send it soon
peppe
Quoted 3 lines
Vince
Hi Peppe,
Quoted 13 lines
Quoted 7 lines
In the Synopsys EMAC case, carrier sense is used to stop transmitting if no carrier is sensed during a transmission. This is only useful if the media in use is true half duplex media (like obsolete 10Base2 or 10Base5). If no one in using true half duplex media, then is it possible to set this disable by default? If we're not sure, then having an option feels like the right thing to do.
Indeed this is what I had done in the patch.
Quoted 8 lines
Also in case of carrier sense the frame will be dropped in any case later.
Let me know if you Acked this patch so I will rebase it on net.git and I send it soon
peppe
Yes, this looks good to me. I don't expect anyone is using 10Base2 or 10Base5 anymore, so it's ok to disable DCRS by default.
ack
All the best,
Vince
Quoted 24 lines · Vince Bridgers
Hi Peppe,
Quoted 13 lines
Quoted 7 lines
In the Synopsys EMAC case, carrier sense is used to stop transmitting if no carrier is sensed during a transmission. This is only useful if the media in use is true half duplex media (like obsolete 10Base2 or 10Base5). If no one in using true half duplex media, then is it possible to set this disable by default? If we're not sure, then having an option feels like the right thing to do.
Indeed this is what I had done in the patch.
Quoted 8 lines
Also in case of carrier sense the frame will be dropped in any case later.
Let me know if you Acked this patch so I will rebase it on net.git and I send it soon
peppe
Quoted 6 lines
Yes, this looks good to me. I don't expect anyone is using 10Base2 or 10Base5 anymore, so it's ok to disable DCRS by default.
ack
All the best,
thx so much, I will send this patch (with your Acked-by) and ported on net.git soon.
Chen-Yu, Ley Foon, pls let me know if it is ok for you as well
Kind Regards
Peppe
Quoted 4 lines
Vince
Quoted 22 lines · Giuseppe CAVALLARO
Quoted 22 lines
Quoted 8 lines
Indeed this is what I had done in the patch.
Quoted 8 lines
Also in case of carrier sense the frame will be dropped in any case later.
Let me know if you Acked this patch so I will rebase it on net.git and I send it soon
peppe
Yes, this looks good to me. I don't expect anyone is using 10Base2 or 10Base5 anymore, so it's ok to disable DCRS by default.
ack
Quoted 7 lines
Quoted 1 line
All the best,
thx so much, I will send this patch (with your Acked-by) and ported on net.git soon.
Chen-Yu, Ley Foon, pls let me know if it is ok for you as well
I'm fine with your patch.
Thanks.
Regards
Ley Foon
Quoted 33 lines · Giuseppe CAVALLARO
Quoted 32 lines · Vince Bridgers
Hi Peppe,
Quoted 15 lines
Quoted 7 lines
In the Synopsys EMAC case, carrier sense is used to stop transmitting if no carrier is sensed during a transmission. This is only useful if the media in use is true half duplex media (like obsolete 10Base2 or 10Base5). If no one in using true half duplex media, then is it possible to set this disable by default? If we're not sure, then having an option feels like the right thing to do.
Indeed this is what I had done in the patch.
Quoted 8 lines
Also in case of carrier sense the frame will be dropped in any case later.
Let me know if you Acked this patch so I will rebase it on net.git and I send it soon
peppe
Yes, this looks good to me. I don't expect anyone is using 10Base2 or 10Base5 anymore, so it's ok to disable DCRS by default.
ack
Quoted 7 lines
Quoted 1 line
All the best,
thx so much, I will send this patch (with your Acked-by) and ported on net.git soon.
Chen-Yu, Ley Foon, pls let me know if it is ok for you as well
Looks good. Thanks!
Cheers
ChenYu