Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e0f1158 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: u_ether: Prevent dropping multicast packet in rmnet ip mode"

parents a386ee3d 301fba0e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -780,7 +780,8 @@ static netdev_tx_t eth_start_xmit(struct sk_buff *skb,
	}

	/* apply outgoing CDC or RNDIS filters */
	if (skb && !is_promisc(cdc_filter)) {
	if (!test_bit(RMNET_MODE_LLP_IP, &dev->flags) &&
			!is_promisc(cdc_filter)) {
		u8		*dest = skb->data;

		if (is_multicast_ether_addr(dest)) {
@@ -794,6 +795,7 @@ static netdev_tx_t eth_start_xmit(struct sk_buff *skb,
			else
				type = USB_CDC_PACKET_TYPE_ALL_MULTICAST;
			if (!(cdc_filter & type)) {
				dev->net->stats.tx_dropped++;
				dev_kfree_skb_any(skb);
				return NETDEV_TX_OK;
			}