net/hns3: simplify selecting Rx/Tx function