Skip to content
  • Alessandro Rubini's avatar
    pfilter: simplify the rule-set and make it stronger. Use one set only. · e35610a6
    Alessandro Rubini authored
    This changes the pfilter rule-set, to make it ready for vlan addition.
    Moreover, it removes the choice between three rule-sets and uses one
    that works for everyone (we'll add the vlan option later on).
    
    Moreover, we prepare for the option of peer-delay PTP and UDP-based PTP.
    
    As a side effect, one Kconfig option is removed.
    
    We know for sure that what goes to the "streamer" protocol
    is re-checked, so the streamer can get some "everything else", exactly
    like the 7S wr-nic (that sends to the host everything unused).
    
    This is the current rule set:
    
         - everything tagged is dropped
         - CPU: arp broadcast, not unicast (i.e. requests only).
         - CPU: PTP ethtype. Any mac address.
         - CPU: ICMP unicast, not broadcast.
         - CPU: UDP (uni/multicast), ports  bootpc, ptp-event, ptp-general.
         - Etherbone (class 7): UDP (uni/multicast) and port 0xebd0
         - Other fabric (class 6): anything not Etherbone (inverted class 7 bit)
    
    Thi...
    e35610a6