There's a case going through the courts for Red Hat right now where they based managerial bonuses on how diverse their teams were, which reportedly led to them pushing out white males.
Such should rightfully be illegal.