net/i40e/base: code refactoring for LED blink