MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ixgbe_crypto_capable

Function ixgbe_crypto_capable

dpdk/drivers/net/ixgbe/ixgbe_ipsec.c:710–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708};
709
710static int
711ixgbe_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
725int
726ixgbe_ipsec_ctx_create(struct rte_eth_dev *dev)

Callers 1

ixgbe_ipsec_ctx_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected