[PATCH v1 3/4] j1939: socket: j1939_sk_match_filter(): remove comment about filter handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's straight forward filter handling, don't set mask if you're not
interested in some aspects of the address, No need to know the semantics
of J1939 here.

Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/socket.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c
index f212e8b19fc7..b24367bc4391 100644
--- a/net/can/j1939/socket.c
+++ b/net/can/j1939/socket.c
@@ -158,10 +158,6 @@ static bool j1939_sk_match_filter(struct j1939_sock *jsk,
 		/* receive all when no filters are assigned */
 		return true;
 
-	/* Filters relying on the addr for static addressing _should_ get
-	 * packets from dynamic addressed ECU's too if they match their SA.
-	 * Sockets using dynamic addressing in their filters should not set it.
-	 */
 	for (; nfilter; ++f, --nfilter) {
 		if ((skcb->addr.pgn & f->pgn_mask) != f->pgn)
 			continue;
-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux