Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame^] | 1 | namespace phosphor |
| 2 | { |
| 3 | namespace network |
| 4 | { |
| 5 | namespace ncsi |
| 6 | { |
| 7 | |
| 8 | /* @brief This function will ask underlying NCSI driver |
| 9 | * to set a specific package or package/channel |
| 10 | * combination as the preferred choice. |
| 11 | * This function talks with the NCSI driver over |
| 12 | * netlink messages. |
| 13 | * @param[in] ifindex - Interface Index. |
| 14 | * @param[in] package - NCSI Package. |
| 15 | * @param[in] channel - Channel number with in the package. |
| 16 | * @returns 0 on success and negative value for failure. |
| 17 | */ |
| 18 | int setChannel(int ifindex, int package, int channel); |
| 19 | |
| 20 | /* @brief This function will ask underlying NCSI driver |
| 21 | * to clear any preferred setting from the given |
| 22 | * interface. |
| 23 | * This function talks with the NCSI driver over |
| 24 | * netlink messages. |
| 25 | * @param[in] ifindex - Interface Index. |
| 26 | * @returns 0 on success and negative value for failure. |
| 27 | */ |
| 28 | int clearInterface(int ifindex); |
| 29 | |
| 30 | }//namespace ncsi |
| 31 | }//namespace network |
| 32 | }//namespace phosphor |
| 33 | |