Giter Club home page Giter Club logo

Comments (4)

romanrm avatar romanrm commented on September 7, 2024

I see now that the whole thing is just commented out :D https://github.com/amery/linux-allwinner/blob/allwinner-v3.0-android-v2/drivers/net/sun4i/sun4i_wemac.c#L975 awesome.

from linux-sunxi.

Vayu avatar Vayu commented on September 7, 2024

There is already some discussion of wemac driver here https://github.com/amery/linux-allwinner/pull/39. This issues can probably be merged

from linux-sunxi.

romanrm avatar romanrm commented on September 7, 2024

This issues can probably be merged

That bug is about performance, this bug is about multicast. Two completely different issues.
Or do you advocate merging everything about some particular driver into one huge messy issue about everything.

from linux-sunxi.

romanrm avatar romanrm commented on September 7, 2024

I have managed to fix it with this patch:

--- orig/drivers/net/sun4i/sun4i_wemac.h    2012-06-28 11:56:32.073263842 +0600
+++ fixed/drivers/net/sun4i/sun4i_wemac.h   2012-07-23 14:16:44.868297894 +0600
@@ -180,7 +180,7 @@
 #define EMAC_RX_UCAD        1  //0: Not accept             1: Accept unicast Packets(default)
 #define EMAC_RX_DAF         1  //0: Normal(default)        1: DA Filtering
 #define EMAC_RX_MCO         1  //0: Not accept             1: Accept multicast Packets(default)
-#define EMAC_RX_MHF         1  //0: Disable(default)       1: Enable Hash filter 
+#define EMAC_RX_MHF         0  //0: Disable(default)       1: Enable Hash filter 
 #define EMAC_RX_BCO            1  //0: Not accept             1: Accept Broadcast Packets(default)
 #define EMAC_RX_SAF         0  //0: Disable(default)       1: Enable SA Filtering
 #define EMAC_RX_SAIF        0  //0: Normal(default)        1: Inverse Filtering

i.e. disabling the hash filter for multicast. The hash table function is non-functional (commented out) in the link above, so that's why it didn't work.
The multicast now works fine, maybe at the expense of no h/w filtering (my guess is now every multicast packet is passed to the above layers by the driver). But this is much much better than completely broken.
Also according to the comments in the modified line, the hash filter should be disabled by default, so no idea why the constant was set to 1. Every other constant seems to be set according to the "(default)" value in the corresponding comments.

from linux-sunxi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.