|
@@ -658,6 +658,8 @@ netdev_rx_frozen ( struct net_device *netdev ) {
|
658
|
658
|
return ( netdev->state & NETDEV_RX_FROZEN );
|
659
|
659
|
}
|
660
|
660
|
|
|
661
|
+extern void netdev_rx_freeze ( struct net_device *netdev );
|
|
662
|
+extern void netdev_rx_unfreeze ( struct net_device *netdev );
|
661
|
663
|
extern void netdev_link_err ( struct net_device *netdev, int rc );
|
662
|
664
|
extern void netdev_link_down ( struct net_device *netdev );
|
663
|
665
|
extern int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf );
|
|
@@ -733,24 +735,4 @@ netdev_link_up ( struct net_device *netdev ) {
|
733
|
735
|
netdev_link_err ( netdev, 0 );
|
734
|
736
|
}
|
735
|
737
|
|
736
|
|
-/**
|
737
|
|
- * Freeze network device receive queue processing
|
738
|
|
- *
|
739
|
|
- * @v netdev Network device
|
740
|
|
- */
|
741
|
|
-static inline __attribute__ (( always_inline )) void
|
742
|
|
-netdev_rx_freeze ( struct net_device *netdev ) {
|
743
|
|
- netdev->state |= NETDEV_RX_FROZEN;
|
744
|
|
-}
|
745
|
|
-
|
746
|
|
-/**
|
747
|
|
- * Unfreeze network device receive queue processing
|
748
|
|
- *
|
749
|
|
- * @v netdev Network device
|
750
|
|
- */
|
751
|
|
-static inline __attribute__ (( always_inline )) void
|
752
|
|
-netdev_rx_unfreeze ( struct net_device *netdev ) {
|
753
|
|
- netdev->state &= ~NETDEV_RX_FROZEN;
|
754
|
|
-}
|
755
|
|
-
|
756
|
738
|
#endif /* _IPXE_NETDEVICE_H */
|