|
@@ -795,6 +795,21 @@ void rndis_rx ( struct rndis_device *rndis, struct io_buffer *iobuf ) {
|
795
|
795
|
netdev_rx_err ( netdev, iob_disown ( iobuf ), rc );
|
796
|
796
|
}
|
797
|
797
|
|
|
798
|
+/**
|
|
799
|
+ * Discard packet from underlying transport layer
|
|
800
|
+ *
|
|
801
|
+ * @v rndis RNDIS device
|
|
802
|
+ * @v iobuf I/O buffer
|
|
803
|
+ * @v rc Packet status code
|
|
804
|
+ */
|
|
805
|
+void rndis_rx_err ( struct rndis_device *rndis, struct io_buffer *iobuf,
|
|
806
|
+ int rc ) {
|
|
807
|
+ struct net_device *netdev = rndis->netdev;
|
|
808
|
+
|
|
809
|
+ /* Record error */
|
|
810
|
+ netdev_rx_err ( netdev, iob_disown ( iobuf ), rc );
|
|
811
|
+}
|
|
812
|
+
|
798
|
813
|
/**
|
799
|
814
|
* Set receive filter
|
800
|
815
|
*
|