.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * QLogic qlcnic NIC Driver |
---|
3 | 4 | * Copyright (c) 2009-2013 QLogic Corporation |
---|
4 | | - * |
---|
5 | | - * See LICENSE.qlcnic for copyright and licensing details. |
---|
6 | 5 | */ |
---|
7 | 6 | |
---|
8 | 7 | #ifndef __QLCNIC_DCBX_H |
---|
.. | .. |
---|
52 | 51 | if (dcb && dcb->ops->get_hw_capability) |
---|
53 | 52 | return dcb->ops->get_hw_capability(dcb); |
---|
54 | 53 | |
---|
55 | | - return 0; |
---|
| 54 | + return -EOPNOTSUPP; |
---|
56 | 55 | } |
---|
57 | 56 | |
---|
58 | 57 | static inline void qlcnic_dcb_free(struct qlcnic_dcb *dcb) |
---|
.. | .. |
---|
66 | 65 | if (dcb && dcb->ops->attach) |
---|
67 | 66 | return dcb->ops->attach(dcb); |
---|
68 | 67 | |
---|
69 | | - return 0; |
---|
| 68 | + return -EOPNOTSUPP; |
---|
70 | 69 | } |
---|
71 | 70 | |
---|
72 | 71 | static inline int |
---|
.. | .. |
---|
75 | 74 | if (dcb && dcb->ops->query_hw_capability) |
---|
76 | 75 | return dcb->ops->query_hw_capability(dcb, buf); |
---|
77 | 76 | |
---|
78 | | - return 0; |
---|
| 77 | + return -EOPNOTSUPP; |
---|
79 | 78 | } |
---|
80 | 79 | |
---|
81 | 80 | static inline void qlcnic_dcb_get_info(struct qlcnic_dcb *dcb) |
---|
.. | .. |
---|
90 | 89 | if (dcb && dcb->ops->query_cee_param) |
---|
91 | 90 | return dcb->ops->query_cee_param(dcb, buf, type); |
---|
92 | 91 | |
---|
93 | | - return 0; |
---|
| 92 | + return -EOPNOTSUPP; |
---|
94 | 93 | } |
---|
95 | 94 | |
---|
96 | 95 | static inline int qlcnic_dcb_get_cee_cfg(struct qlcnic_dcb *dcb) |
---|
.. | .. |
---|
98 | 97 | if (dcb && dcb->ops->get_cee_cfg) |
---|
99 | 98 | return dcb->ops->get_cee_cfg(dcb); |
---|
100 | 99 | |
---|
101 | | - return 0; |
---|
| 100 | + return -EOPNOTSUPP; |
---|
102 | 101 | } |
---|
103 | 102 | |
---|
104 | 103 | static inline void qlcnic_dcb_aen_handler(struct qlcnic_dcb *dcb, void *msg) |
---|