net: add helpers to resolve negotiated flow control