| 708 | }; |
| 709 | |
| 710 | static int |
| 711 | ixgbe_crypto_capable(struct rte_eth_dev *dev) |
| 712 | { |
| 713 | struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private); |
| 714 | uint32_t reg_i, reg, capable = 1; |
| 715 | /* test if rx crypto can be enabled and then write back initial value*/ |
| 716 | reg_i = IXGBE_READ_REG(hw, IXGBE_SECRXCTRL); |
| 717 | IXGBE_WRITE_REG(hw, IXGBE_SECRXCTRL, 0); |
| 718 | reg = IXGBE_READ_REG(hw, IXGBE_SECRXCTRL); |
| 719 | if (reg != 0) |
| 720 | capable = 0; |
| 721 | IXGBE_WRITE_REG(hw, IXGBE_SECRXCTRL, reg_i); |
| 722 | return capable; |
| 723 | } |
| 724 | |
| 725 | int |
| 726 | ixgbe_ipsec_ctx_create(struct rte_eth_dev *dev) |
no outgoing calls
no test coverage detected